button1.location = new point(cursor.position.x, cursor.position.y)
timer1.enabled = true
Timer1.enabled = false
rymesPrivate Sub Button1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Button1.MouseDown
Xpos = Cursor.Position.X - Button1.Location.X
Ypos = Cursor.Position.Y - Button1.Location.Y
End Sub
Private Sub Button16_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Button1.MouseMove
If e.Button = Windows.Forms.MouseButtons.Left Then
Pos = MousePosition
Pos.X = Pos.X - Xpos
Pos.Y = Pos.Y - Ypos
Button1.Location = Pos
End If
