#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