标签:color os ar ef on sp window c
int cx; int cy;
private void btnClose_Click(object sender, EventArgs e)
{ this.Close(); }
private void btnClose_MouseLeave(object sender, EventArgs e)
{ btnClose.BackColor = Color.Transparent; }
private void btnClose_MouseMove(object sender, MouseEventArgs e)
{ btnClose.BackColor = Color.Red; }
private void panel1_MouseDown(object sender, MouseEventArgs e)
{ if (e.Button == MouseButtons.Left)
{ cx = e.X;
cy = e.Y;
}
}
private void panel1_MouseMove(object sender, MouseEventArgs e)
{ if (e.Button == MouseButtons.Left)
{ this.Left += e.X - cx;
this.Top += e.Y - cy;
}
}
windows无边框窗体移动设置,布布扣,bubuko.com
标签:color os ar ef on sp window c
原文地址:http://www.cnblogs.com/eation320/p/3924497.html