Articles in this section
Category / Section

How to prevent the WinForms PopUpMenu from showing up for child controls?

1 min read

Prevent Popupmenu from child controls

In order to prevent the PopUpMenu from showing up when you right click on any child control whose parent has a PopUpMenu associated with it, you need to assign a dummy PopUpMenu for the child control(s).

You can do this by adding another PopupMenu with no items and setting the XPContextMenu on PopupMenusManager for the child contro(s) to be this popupmenu.

Reference link:

Did you find this information helpful?
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment