How can i get the X and Y coordinates of the spot on the form where the user clicks?
Printable View
How can i get the X and Y coordinates of the spot on the form where the user clicks?
Using MouseDown or MouseUP events would be the easiest way:
Code:Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.Print "X = " & X & ", " & "Y = " & Y
End Sub
ROFL. I didn't even see that sub. XD Thanks!