Exemple #1
0
        private void TopPnl_MouseMove(object sender, MouseEventArgs e)
        {
            var newLocation = DraggableForm.MouseMove();

            if (newLocation != Point.Empty)
            {
                this.Location = newLocation;
            }
        }
Exemple #2
0
 private void TopPnl_MouseUp(object sender, MouseEventArgs e)
 {
     DraggableForm.MouseUp();
 }
Exemple #3
0
 private void TopPnl_MouseDown(object sender, MouseEventArgs e)
 {
     DraggableForm.MouseDown(Cursor.Position, this.Location);
 }