Exemple #1
0
 protected override void OnMouseDown(MouseEventArgs e)
 {
     if (!base.DesignMode)
     {
         if (this.moveModes == MoveModes.Whole)
         {
             NativeMethods.MouseToMoveControl(base.Handle);
         }
         else if ((this.moveModes == MoveModes.Title) && (e.Y <= this.captionHeight))
         {
             NativeMethods.MouseToMoveControl(base.Handle);
         }
     }
     base.OnMouseDown(e);
 }