How can i get the X and Y coordinates of the spot on the form where the user clicks?
Rate my post if i helped you! Button Configuration Control For VB6 GetAsyncKeyState I'm the 7th best high school programmer in the nation!(according to SkillsUSA Nationals)(Used C#.Net)
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
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!
Forum Rules