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: https://help.syncfusion.com/windowsforms/popupmenu/baritem-types