标签:for orm void this obj end ati oca sem
#region 无边框窗体拖动
//获取当前鼠标坐标
private Point mPoint;
private void lbl_Title_MouseDown(object sender,MouseEventArgs e)
{
mPoint=e.Location;
}
private void lbl_Title_MouseMove(object sender,MouseEventArgs e)
{
//左键拖动
if(e.Button==MouseButtons.Left)
{
//窗体当前坐标
this.Locatin=new Point(this.Location.X+e.X-mPoint.X,this.Location.y+e.Y-mPoint.Y);
}
}
#endregion
标签:for orm void this obj end ati oca sem
原文地址:https://www.cnblogs.com/z55w/p/14902388.html