Home All Groups Group Topic Archive Search About

mouseclick on a toostripstatuslabel

Author
7 Oct 2006 8:15 PM
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.

Author
8 Oct 2006 12:31 AM
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


GS wrote:
Show quoteHide quote
> 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.
Author
8 Oct 2006 3:15 AM
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?
Show quoteHide quote
"rowe_newsgroups" <rowe_em***@yahoo.com> wrote in message
news:1160267509.373222.130670@m73g2000cwd.googlegroups.com...
> > 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
>
>
> GS wrote:
> > 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.
>