473,890 Members | 1,885 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_Button Click' 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 2121
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.o rg> wrote in message
news:vi******** *************** *********@4ax.c om...
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_Button Click' 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_Button Click' 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.o rg> wrote in message
news:m5******** *************** *********@4ax.c om...
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_Button Click' 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
65789
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 remove them? If the browser is Netscape I can use javascript: window.toolbar.visible = false; window.menubar.visible = false; but IE produces the error: "'window.toolbar.visible' is null or not an object".
102
7433
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
2927
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
1822
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 'text Set newObject =
4
5610
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 a toolbar for a research project that does some things with existing code that we've written. We need to get working on making the toolbar *do things* but I can't even get started with making a basic toolbar. Any suggestions would be much...
6
3139
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 ToolbarButtons... Does anyone know how this could be done? Looking forward to hear from you,
1
3494
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 - 1; j++) { // Some operations
4
3669
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 to be able to control the toolbar from another form. Forms!frmClipping!Toolbar1.Buttons(2).Clicked = True does not work. Does anybody have any ideas how to do this? Gerhard
3
5275
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 toolbar is in the same ToolStripPanel as specified in the settings. For example, create a toolbar in ToolStripContainer.TopToolStripPanel and save settings. Drag to tool bar somewhere else within ToolStripContainer.TopToolStripPanel and then load...
6
3912
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 we have a standard toolbar that is at the top of the form window. It contains about 8 buttons that use images from an imagelist. Sometimes we hide buttons thru the code. When a button is hidden, i assumed that it wasn't clickable. It appears
0
9975
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11212
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9614
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8004
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7154
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6032
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4655
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4255
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3263
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.