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

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.