Auto Close in WinForms Context Menu Strip

When the AutoClose property of the WinForms Context Menu Strip is set to true, the context menu will close when the user clicks on any menu item or anywhere on the form. If this is set to false, the menu will not be closed after any user action, allowing multiple items to be selected in sequence. 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