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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mouse Click in VB.NET

Status
Not open for further replies.

nomaam

Programmer
Dec 29, 2003
39
CA
I would like to know how to record a user's mouse click, and how to call a mouse click.

i have found many examples of this in other version of vb, but i can't find an example that works in vb.net

thanks.
 
Record what?? mouse x & y, what button was clicked?

You should be able to do all of this on the mousedown event.
 
i'm not that familiar with vb.net, could you tell me whats wrong with the following:

=========================
Private Sub MouseClick(ByVal Sender As Object, ByVal e As MouseEventHandler)
MessageBox.Show("mouse has been clicked")
End Sub
=========================
 
also, could you show me a small example where i call mouse click to simulate a users mouseclick.

thanks, sorry if these questions sound really simple.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top