Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

moving mouse programmatically using vb.net

Status
Not open for further replies.

ashishraj14

Programmer
Joined
Mar 1, 2005
Messages
92
Location
AU
how can i change coordinates of the mouse programmatically?

thanks
 
Code:
Dim x As Integer = 0
Dim y As Integer = 0
System.Windows.Forms.Cursor.Position = New Point(x, y)

The above code is self-explanatory.. it sets the mouse cursor at 0,0 on the screen (topleft).

Regards, Ruffnekk
---
Is it my imagination or do buffalo wings taste just like chicken?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top