110,825
社区成员
![](https://csdnimg.cn/release/cmsfe/public/img/topic.427195d5.png)
![](https://csdnimg.cn/release/cmsfe/public/img/me.40a70ab0.png)
![](https://csdnimg.cn/release/cmsfe/public/img/task.87b52881.png)
![](https://csdnimg.cn/release/cmsfe/public/img/share-circle.3e0b7822.png)
Form2 form2 = null;
private void Form1_Load(object sender, EventArgs e)
{
form2 = new Form2();
form2.FormBorderStyle = FormBorderStyle.None;
form2.TopMost = true;
form2.Size = this.Size;
form2.Show();
this.LocationChanged += new EventHandler(Form1_LocationChanged);
}
void Form1_LocationChanged(object sender, EventArgs e)
{
try { form2.Location = this.Location; }
catch { }
}
TransparencyKey = Color.AliceBlue;
this.BackColor = Color.AliceBlue;
Form2 form2 = null;
private void Form1_Load(object sender, EventArgs e)
{
form2.FormBorderStyle = FormBorderStyle.None;
form2.Show();
this.LocationChanged += new EventHandler(Form1_LocationChanged);
}
void Form1_LocationChanged(object sender, EventArgs e)
{
try { form2.Location = this.Location; }
catch { }
}
this.TransparencyKey = this.BackColor;
this.TransparencyKey = this.BackColor;