Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MouseDown:
- lastPoint = new Point(e.X, e.Y);
- -----------
- MouseMove:
- if (e.Button == MouseButtons.Left)
- {
- this.Left += e.X - lastPoint.X;
- this.Top += e.Y - lastPoint.Y;
- }
- -----------
- Variable:
- Point lastPoint;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement