/// <summary> /// 移动窗体 /// </summary> /// <param name="form"></param> public static void moveWindow(this Form form) { WindowsUtil.ReleaseCapture(); WindowsUtil.SendMessage(form.Handle, WindowMessage.WM_NCLBUTTONDOWN, WindowHitTest.HTCAPTION, 0); }