예제 #1
0
 /// <summary>
 /// Обработчик события перемещения окна
 /// </summary>
 private void HeaderPanel_MouseDown(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         Win32ApiHelper.ReleaseCapture();
         Win32ApiHelper.SendMessage(Handle, Win32ApiHelper.WM_NCLBUTTONDOWN, Win32ApiHelper.HT_CAPTION, 0);
     }
 }