473,769 Members | 3,232 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Right click, button


Is there any way to enable right click on a winform button?

Aug 18 '05 #1
4 1975
John Bailo <ja*****@texeme .com>'s wild thoughts were
released on Thu, 18 Aug 2005 16:40:33 -0700 bearing the
following fruit:

Is there any way to enable right click on a winform button?


You might want to be more specific. There's nothing stopping
you from right clicking a button ;-)

My guess is that you want to show a menu when the user right
clicks on a button?


Jan Hyde (VB MVP)

--
Quiet people aren't the only ones who don't say much.

[Abolish the TV Licence - http://www.tvlicensing.biz/]

Aug 22 '05 #2
Jan Hyde wrote:
John Bailo <ja*****@texeme .com>'s wild thoughts were
released on Thu, 18 Aug 2005 16:40:33 -0700 bearing the
following fruit:

Is there any way to enable right click on a winform button?

You might want to be more specific. There's nothing stopping
you from right clicking a button ;-)

My guess is that you want to show a menu when the user right
clicks on a button?


First, of all, I realize: I'm left handed so I've confused everyone!

My left click is my primary button and right click is my secondary.

No, it's a filter function.

So, I want left click to activate the filter and right click to clear
the filter.


Jan Hyde (VB MVP)

Aug 22 '05 #3
Hi John,

You can try set a contextmenu for the button.
"John Bailo" <ja*****@texeme .com> wrote in message
news:a7******** ************@sp eakeasy.net...

Is there any way to enable right click on a winform button?

Aug 23 '05 #4
John Bailo <ja*****@texeme .com>'s wild thoughts were
released on Mon, 22 Aug 2005 09:06:27 -0700 bearing the
following fruit:
Jan Hyde wrote:
John Bailo <ja*****@texeme .com>'s wild thoughts were
released on Thu, 18 Aug 2005 16:40:33 -0700 bearing the
following fruit:

Is there any way to enable right click on a winform button?

You might want to be more specific. There's nothing stopping
you from right clicking a button ;-)

My guess is that you want to show a menu when the user right
clicks on a button?


First, of all, I realize: I'm left handed so I've confused everyone!

My left click is my primary button and right click is my secondary.

No, it's a filter function.

So, I want left click to activate the filter and right click to clear
the filter.

Soooo... Are you asking how to determine which mouse button
was clicked on a command button?

J



Jan Hyde (VB MVP)

Jan Hyde (VB MVP)

--
Cat, n.: Lapwarmer with built-in buzzer.

[Abolish the TV Licence - http://www.tvlicensing.biz/]

Aug 23 '05 #5

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

Similar topics

2
506
by: cmelnick | last post by:
I need to determine whether the user used the right or left mouse button to click an element on a form. AFAIK, there is no way to determine this from the Click (or DoubleClick) event. I currently have my form set up to have a MouseButtons instance that gets updated by the MouseDown event, then the Click event checks the instance to see if it was right or left. This works fine, but seems a very roundabout and clumsy way to do something...
3
11627
by: vijaynats | last post by:
I have a treeview with a ContextMenu attached. When i click on a node, AfterSelect fires but does not fire when right clicked (the context menu pops up). (Background: I have loaded a list of disk file names onto the tree and have to open the file thru the contextmenu for editing. It opens the file whose treeview node was selected earlier using a left mouse click). Any solutions?
13
2309
by: James Bond | last post by:
Hello. My 80+ year old father has recently decided to get his first computer. Due to his age (and I suspect lack of playing pong as a child like I did) he lacks the manual dexterity to use a mouse well. He is frequently missing the left mouse button and hitting the right, or less often the middle (wheel) buttons. While he is very slowly getting better with practice, the frustration level is high for him as a result of this (he gets very...
8
1176
by: Patrick | last post by:
Hello - I'm working on a project to have 6 labels, each with a value of 0 - 9. Each label has a 2 buttons on the side, one labeled up, one labeled down. I want the up button to increment til it hits 9, the down button to decriment til it hits 0. That part I can do, but it's very ugly. What I want to do is have a routine that handles the Up Buttons, a routine that handles the Down Buttons, both of them then call a subroutine called...
4
343
by: John Bailo | last post by:
Is there any way to enable right click on a winform button?
4
10850
by: Pucca | last post by:
How can I tell a mouse right clicks over a listview item that's in a container panel. I only want to display a popup menu if the user right click the mouse over an item on the Listview. I don't not want to display this menu if a node selected on the listview but user right click over the empty space of the panel that contain the listview. The problem here is when I use the Listview's Click Event, I don't have ways to verify if the...
8
3726
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I disable the right mouse button? ----------------------------------------------------------------------- The oncontextmenu intrinsic event is the only safe and reliable method. Of the other approaches often presented, most depend on an alert box interrupting the process and rarely work. Note that oncontextmenu is a non-standard event and is not...
18
3965
by: Shocky | last post by:
Hi there, I am trying to detect whether my IE6 users have pressed both right and left mouse buttons simultaneously in my Javascript code, by using: if(event.button==3) {alert("Both right and left mouse buttons pressed");} I am calling the above code on mousedown or mouseup events.
1
9944
by: johnnypung | last post by:
I have a treeview opening a contextMenuStrip on right click. However the right click would not select the node that it right clicks on. How should I make it so the right click will select the node, and open the contextMenuStrip on that node? I tried this: private void treeView1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e) { if (e.Button == MouseButtons.Right) { treeView1.SelectedNode = treeView1.GetNodeAt(e.X,...
0
9590
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
9424
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10000
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7413
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
6675
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
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3968
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
3571
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
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.