I mean atm Im just using api's,but what do you think is the easiest way to grab the coordinates on screen in a form/out of a form.
Mouse X/Y in your form
Code:
Private Sub Form1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseMove
Label1.Text = "X = " & e.X & vbCrLf & "Y = " & e.Y
End Sub
and how would you go about getting the coordinates from outside a form. ?
that is the question xD
Put this in a timer or the mousemove function.
Code:
Me.Text = MousePosition.ToString
Originally Posted by Erinador
Put this in a timer or the mousemove function.
Code:
Me.Text = MousePosition.ToString
Yeah we got inside a form,But what if you want the position off a form, or on the web browser inside the form
My code tells you the coordinates of the mouse even if it is out of the form.
Originally Posted by Erinador
My code tells you the coordinates of the mouse even if it is out of the form.