D
Dino M. Buljubasic
I have several context menus added to my form. The form is displaying items
in listviews connected to the context menus. 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, in addition to calling the context menu on Click, I can call it
also by RightClick which causes application to either freeze, crash, call
Delete context menu two times, etc.
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 which my popup context
menu consists.
Any help will be appreciated,
Dino
in listviews connected to the context menus. 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, in addition to calling the context menu on Click, I can call it
also by RightClick which causes application to either freeze, crash, call
Delete context menu two times, etc.
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 which my popup context
menu consists.
Any help will be appreciated,
Dino