473,408 Members | 2,839 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,408 software developers and data experts.

Adding PopUp Context Menus

I have several context menu added to my forms. The forms are displaying
items in a list view.
When I click on an item in a list view, a popup context menu shows allowing
me to chese between editing or deleting the item from the list view. That
works fine.

However, I noticed that I can call the pop up context menu also by right
clicking on a list view item, just as it works by left clicking on it.
However it this case my application acts unpredictable. It freezes, or
crashes, or calls "Delete" pop up context menu item twice.

How can I solve this problem? Or how to limit pop up context menu to show
only when left clicked on an item.

Some people are recommending me to do MouseDown instead of Click but
MouseDown is not supported event for menu items of whick my popup context
menu consists.

Any help will be appreciated,
Dino

--
-------------------------------------------------------------------------
FIGHT BACK AGAINST SPAM!
Download Spam Inspector, the Award Winning Anti-Spam Filter
http://mail.giantcompany.com

Nov 20 '05 #1
0 1170

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

Similar topics

3
by: VM | last post by:
How can I display my own popup menu when a user right-clicks inside the form? I know you use context menus but I don't how to implement them. Thanks.
5
by: Goldsworth_Systems | last post by:
Using VB.Net, I open a form by using the "MouseDown" event of a textbox control (I test to ensure that the right button has been clicked). However, when I do so, the standard popup menu bar (Undo,...
2
by: Rich Churcher | last post by:
Is there a way using any of the Python UI toolkits to generate popup menus outside the context of an application? For example, middle-clicking on the desktop shows a list of shortcuts to choose...
3
by: RahimAsif | last post by:
I am writing an application that requires the a portion of the main menu to be dynamic. The menu has file, panels, view files and help across the top. The view files sub menu needs to be...
1
by: MrNobody | last post by:
I overrided a TreeView control and then overrided it's MouseClick event like so: protected override void OnMouseClick(MouseEventArgs e) { // base.OnMouseClick(e); TreeNode node =...
2
by: MCM | last post by:
I'm working on a plotting control. The plotting control will have a context menu with basic commands for "scaling", "zooming", etc. Is there a way that, from the parent form, I can add more...
6
by: =?Utf-8?B?RWRC?= | last post by:
I am porting an app from VB6 to VS2005 (VB/Win Forms). It uses a context sensitive pop up menu. You know, you right click on something and an appropriately placed menu comes up. I can not find...
2
by: diogenes | last post by:
I have created many shortcut/popup (aka context, or right-click) menus for my application - instead of toolbars or standard drop-down menus. Within my custom menu, I am using...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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...
0
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...

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.