mouseclick on a toostripstatuslabel


G

GS

how can I tell if it is right mouse click from left mouseclick?
I would also to test if a key like control is being held down at the same
time.

what I would really like to is to capture control right mouse click for
debugging purpose. in a generic event handler.
 
Ad

Advertisements

R

rowe_newsgroups

how can I tell if it is right mouse click from left mouseclick?

The MouseClick event uses "ByVal e As
System.Windows.Forms.MouseEventArgs" parameter. Use e.button returns
which button was clicked.

Thanks,

Seth Rowe
 
Ad

Advertisements

G

GS

thx
If e.Button = Windows.Forms.MouseButtons.Right Then

works out well for.
thx again


BTW what can I use e.button.right or left for?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top