Advertisement
PareX

BordlessForm

May 19th, 2019
13,572
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.59 KB | None | 0 0
  1. //MADE BY PAREX |PEOPLE GIVING U THIS LINK IS COPY RIGHT
  2. Mouse Move Event
  3. -----------------------------------------------------------
  4. if (e.Button == MouseButtons.Left)
  5.             {
  6.                 this.Left += e.X - lastPoint.X;
  7.                 this.Top += e.Y - lastPoint.Y;
  8.             }
  9.  
  10. ------------------------------------------------------------
  11. Mouse Down Event
  12. -----------------------------------------------------------
  13.  
  14. lastPoint = new Point(e.X, e.Y);
  15.  
  16. Declare variable as shown in the video
  17. -----------------------------------------------------------
  18. Point lastPoint;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement