|
-
Aug 26th, 2014, 02:24 AM
#1
Thread Starter
Junior Member
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?
-
Aug 26th, 2014, 02:28 AM
#2
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.
Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.
-
Aug 26th, 2014, 02:41 AM
#3
Thread Starter
Junior Member
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?
-
Aug 26th, 2014, 03:07 AM
#4
Re: Simple Mouse Location Question.
All VB versions after 1998 are Vb.Net
-
Aug 26th, 2014, 04:38 AM
#5
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)
-
Aug 26th, 2014, 10:17 AM
#6
Re: Simple Mouse Location Question.
Moderator Action: Moved the thread to the VB.Net forum.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|