Articles in this section
Category / Section

How to prevent a context menu from closing when a MenuItem is clicked in WinForms PopupMenu?

1 min read

CloseOnClick

To prevent the context or popup menu from closing while clicking on a menu item the CloseOnClick property has to be set as False.

C#

this.popupMenu1.ParentBarItem.CloseOnClick = false;

VB

Me.popupMenu1.ParentBarItem.CloseOnClick = False

Sample: https://help.syncfusion.com/support/samples/KB/Tools.Windows/TClose/Close.zip

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