position mouse pointer?

  • Thread starter Thread starter makai
  • Start date Start date
M

makai

Guest
when you first Show a form can you position mouse pointer to a specific place on the form? (VB)
 
Put this in the load event..

Cursor.Position = Me.PointToScreen(New Point(0, 0))

Note that New Point() is related to the x,y coords of the form. The PointToScreen() method converts that point to the forms coords regardless of where the form is located on the screen.

Hope that makes sense, object browser will probably explain better so look there if you're confused as to how it works. :)
 
Back
Top