473,385 Members | 1,465 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,385 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 2084
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.