954,517 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

set mouse position

how can change mouse position ?
or how can get mouse icon over button1?

electrocem
Newbie Poster
2 posts since Sep 2005
Reputation Points: 10
Solved Threads: 0
 

Windows.Forms.Cursor.Current.Position = New System.Drawing.Point(225, 105)

electrocem
Newbie Poster
2 posts since Sep 2005
Reputation Points: 10
Solved Threads: 0
 

in vb express 2008:

'declare the library function we plan to use:
Declare Function SetCursorPos& Lib "user32" (ByVal p As Point)

...

dim p as point
p.x = 100
p.y = 200
SetCursorPos p

atmanning
Newbie Poster
1 post since Nov 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You