473,387 Members | 1,423 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.

toolbar

Is it possible to tell which button has been clicked, when using the right
mouse button (using the mousedown event).

I can tell which button using the 'ToolBar_ButtonClick' but I want to tell
whether it was a left or right mouse button click.

I've searched Google, but surprisingly there isn't anything on there, so any
help received with thanks.

Nov 15 '05 #1
3 2085
you can try trapping for the contextmenu event. what are you trying to do?
you don't normally trap for a contextmenu over a button, much less a toolbar
button.
"Trythat" <do***@bother.org> wrote in message
news:vi********************************@4ax.com...
Is it possible to tell which button has been clicked, when using the right
mouse button (using the mousedown event).

I can tell which button using the 'ToolBar_ButtonClick' but I want to tell
whether it was a left or right mouse button click.

I've searched Google, but surprisingly there isn't anything on there, so any help received with thanks.

Nov 15 '05 #2
On Sat, 27 Sep 2003 20:53:13 -0500, "Alvin Bruney"
<vapordan_spam_me_not@hotmail_no_spamhotmail.com > wrote:
you can try trapping for the contextmenu event. what are you trying to do?
you don't normally trap for a contextmenu over a button, much less a toolbar
button.

What it is - I have a print button, which works fine, and prints out 1 copy, if
I want to print more than 1 copy, then I have to click it more than once.

I don't want to have the system print dialog come up, so I thought, if a user
wants to print more than 1 copy, I could implement a right-click on the
button, then a small dialog would come up and they could enter a value via a
spinner or text box.
Is it possible to tell which button has been clicked, when using the right
mouse button (using the mousedown event).

I can tell which button using the 'ToolBar_ButtonClick' but I want to tell
whether it was a left or right mouse button click.

I've searched Google, but surprisingly there isn't anything on there, so

any
help received with thanks.


Nov 15 '05 #3
I see what you are trying to accomplish, but you are re-inventing the wheel
unnecessarily. The print dialog encapsulates this process.

If you still want to proceed and this is an asp.net process, then you will
need to do this from javascript in the client side by mapping the
contextmenu event to a javascript function.

"Trythat" <do***@bother.org> wrote in message
news:m5********************************@4ax.com...
On Sat, 27 Sep 2003 20:53:13 -0500, "Alvin Bruney"
<vapordan_spam_me_not@hotmail_no_spamhotmail.com > wrote:
you can try trapping for the contextmenu event. what are you trying to do?
you don't normally trap for a contextmenu over a button, much less a toolbarbutton.

What it is - I have a print button, which works fine, and prints out 1

copy, if I want to print more than 1 copy, then I have to click it more than once.

I don't want to have the system print dialog come up, so I thought, if a user wants to print more than 1 copy, I could implement a right-click on the
button, then a small dialog would come up and they could enter a value via a spinner or text box.
Is it possible to tell which button has been clicked, when using the right mouse button (using the mousedown event).

I can tell which button using the 'ToolBar_ButtonClick' but I want to tell whether it was a left or right mouse button click.

I've searched Google, but surprisingly there isn't anything on there,
soany
help received with thanks.

Nov 15 '05 #4

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

Similar topics

15
by: Code Monkee | last post by:
How can the toolbar and menubar be hidden in IE? When opening the window via javascript I can specify 'toolbar=no,menubar=no', which works fine. However if the window already exists how can I...
102
by: me | last post by:
How do I prevent the save/print/email/mypictures toolbar from popping up when IE users place their cursor over photos at my website? Thank you in advance for your help. Signed, me
11
by: N. Graves | last post by:
I have checked the "Alignment and Sizing" toolbar but when I want to use in on aligning several form object the toolbar buttons stay grayed out. What am I missing. Thanks! N. Graves
0
by: Lauren Quantrell | last post by:
I use the following code to create text edit fields and command buttons in my toolbars: Function CreateToolbarObject(myObjectType as integer) Dim newObject Select Case myObjectType Case 1...
4
by: Jason Tabert | last post by:
Is there a way to create a custom IE toolbar with C# (or anything else in ..NET for that matter)? I have been looking all day and have had no luck finding a good place to start. I need to make...
6
by: Juan Pedro Gonzalez | last post by:
I wanted to add a Combobox to a toolbar... Kind of the look you get on VisualStudio's toolbar. I've been able to find some VB 6 samples, but the placeholder option is no longer available for...
1
by: Alfredo Barrientos | last post by:
Hi, I have a little trouble trying to assign a Toolbar control to another toolbar variable control. I am getting my forms controls with this: for (int j = 0; j <= frmChild.Controls.Count -...
4
by: Gerhard | last post by:
I have an MS Access app with multiple forms. One of the forms has a Toolbar (MsComctlLib.Toolbar) and it works as advertised. I handle the buttons in the Toolbar1_ButtonClick event. I would like...
3
by: Undergrid | last post by:
Hi All, I've got a few toolbars in my application hosted in a ToolStripContainer. I have found a problem whereby the location of a toolbar is not restored when doing a LoadSettings if the...
6
by: =?Utf-8?B?L2Rldi9udWxs?= | last post by:
Hello, i am using visual studio 2003 enterprise architect version. I am making apps for the .Net framework 1.1. While testing an interface, i discovered something strange. In this application...
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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.