示例#1
0
 /// <summary>
 ///     Handle the mouse down on the Pipette "label", we take the capture and move the zoomer to the current location
 /// </summary>
 /// <param name="e">MouseEventArgs</param>
 protected override void OnMouseDown(MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         User32Api.SetCapture(Handle);
         _movableShowColorForm.MoveTo(PointToScreen(new Point(e.X, e.Y)));
     }
     base.OnMouseDown(e);
 }