/// <summary> /// 移动窗体 /// </summary> public static void MoveWindow(Form form) { Win32API.ReleaseCapture(); Win32API.SendMessage(form.Handle, Win32API.WM_NCLBUTTONDOWN, Win32API.HTCAPTION, 0); }