private void panel1_MouseDown(object sender, MouseEventArgs标签:const,自定义,拖动,int,static,窗体,intpublic,Winform From: https://blog.51cto.com/51souta/5805048
{
FromCustomStyle.MoveForm(this, this.panel1);
}
///<summary>
///拖动Panel 窗体移动
///</summary>
///<param name="form1">窗口实例</param>
///<param name="panel1">要拖动的Panel</param>
public static void MoveForm(Form form1,System.Windows.Forms.Panel
{
ReleaseCapture();
//*********************调用移动无窗体控件函数
}
//定义无边框窗体Form
DllImport("user32.dll")]//*********************拖动无窗体的控件
public static extern bool
DllImport("user32.dll")]
public static extern bool SendMessage(IntPtr hwnd, int wMsg, int wParam, int
public const int
public const int
public const int