Auto Close in Windows Forms ContextMenuStrip (ContextMenuStripEx)
9 Dec 2019 / 1 minute to read
When AutoClose
property of the ContextMenuStrip control is set to true
, context menu will get closed when user clicks on any menu item or form. If this is not enabled, the menu items will not be closed even after any user action. By default it is set to true
.
Below code snippet will explain how to set AutoClose
property.
this.contextMenuStripEx1.AutoClose = true;
Me.contextMenuStripEx1.AutoClose = True
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page