Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Private Sub Form1_MouseMove(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseMove
- If e.Button = MouseButtons.Left Then
- Dim mousePos As Point = Control.MousePosition
- mousePos.Offset(mouse_offset.X, mouse_offset.Y)
- Location = mousePos
- End If
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement