Simple Mouse Location Question.
Code:
Private Sub RectangleShape1_MouseEnter(ByVal sender As Object, ByVal e As System.EventArgs) Handles RectangleShape1.MouseEnter
Cursor.Position = New Point(3, 3)
End Sub
This returns the Cursor Position outside the form.
How do I make it so it goes to this position at the top left corner of the form instead of the top left of the screen?
Re: Simple Mouse Location Question.
You're asking your question in the wrong Forum. You have VB.NET so that is where you need to present your questions.
Re: Simple Mouse Location Question.
Okay, Last time I posted. I was told to change thread to VB6 and earlier. Then I moved to here, Now I'm being told to go back.
I have Visual Basic Express 2010. What category does that put me in?
Re: Simple Mouse Location Question.
All VB versions after 1998 are Vb.Net
Re: Simple Mouse Location Question.
You must have posted something that was inferred to be VB6.
In any case, why not add the position of the form to the coordinates.
Cursor.Position = New Point(Me.Left + 3, Me.Top + 3)
Re: Simple Mouse Location Question.
Moderator Action: Moved the thread to the VB.Net forum.