473,785 Members | 2,768 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 1976
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
11630
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
2310
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
10851
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
3727
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
3967
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
9480
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,...
0
10325
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
10148
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8972
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...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4053
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
3646
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
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.