DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   VB.NET (http://www.daniweb.com/forums/forum58.html)
-   -   set mouse position (http://www.daniweb.com/forums/thread32080.html)

electrocem Sep 10th, 2005 5:46 pm
set mouse position
 
how can change mouse position ?
or how can get mouse icon over button1?

electrocem Sep 10th, 2005 6:27 pm
Re: set mouse position
 
Windows.Forms.Cursor.Current.Position = New System.Drawing.Point(225, 105)

atmanning Nov 12th, 2009 12:04 pm
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


All times are GMT -4. The time now is 3:44 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC