ToolStripDropDown::AutoClose Property
.NET Framework (current version)
Gets or sets a value indicating whether the ToolStripDropDown control should automatically close when it has lost activation.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Property Value
Type: System::Booleantrue if the ToolStripDropDown control automatically closes; otherwise, false. The default is true.
If you want a ToolStripDropDown that always stays open, set AutoClose to false.
Note |
|---|
Consider handling the Closing event instead of setting the AutoClose property. Inspect the CloseReason field in your Closing handler to specify custom closing logic. |
UIPermission
to use all windows and user input events without restriction. Associated enumeration: the AllWindows value of System.Security.Permissions::UIPermissionWindow
.NET Framework
Available since 2.0
Available since 2.0
Show:
