109,896
社区成员




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;