473,387 Members | 1,318 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

mouseclick on a toostripstatuslabel

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.
Oct 7 '06 #1
2 1384
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.
Oct 8 '06 #2
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?
"rowe_newsgroups" <ro********@yahoo.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.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.

Oct 8 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: vince | last post by:
Couldn't find a better place to post the question, feel free to direct me to a better place... Needing to automate our application testing using a keystroke/mouseclick recorder for playing back...
2
by: | last post by:
Hi everybody. Need your help. How can I play sound (.wav-file / camera click) on mouseclick? TIA willy wuff ...
3
by: Kubik | last post by:
Hello! How to detect mouseclick anywhere on the form? There is a lot of controls on the form, so I don't want to add eventhandler for each of them. How can I do it in another way? Adam --...
3
by: Hans | last post by:
Hi! In my windowsformapplication I have a DataGrid where the rowheader is not visible, and readOnly = true. The grid is bound to a DataView where AllowEdit, AllowNew and AllowDelete is set to...
4
by: Peter Rilling | last post by:
What is the difference between the MouseClick and Click events?
4
by: Chris Dunaway | last post by:
I added a MouseClick event to a Button control. It responds properly to the Left click of the button, but not a middle click or right click. Is it possible to get a right click and/or middle...
6
by: Kristian Frost | last post by:
Hi, I'm trying to add, as you might guess, mouseclick listeners to the shapes I am drawing using the GDI+ commands in a similar sort of way as could be done with the old VB "shapes". Problem is,...
1
by: JimBob | last post by:
Ok so i added this line of code to a dynamic PictureBox. (i dim it p) AddHandler p.MouseClick, AddressOf Hand.Canvas_Click what it would do is change the pic on the picbox but every time you click...
6
by: RolltheBall | last post by:
Hi there. I am trying to make a certain symbol to appear upon every mouseclick. However, the symbol is a cross and an arrow head. This is how I tried to do it. Private Sub Form1_Paint(ByVal...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.