System.Windows.Forms.ToolStripDropDown.AutoClose Property

Gets or sets a value indicating whether the System.Windows.Forms.ToolStripDropDown control should automatically close when it has lost activation.

Syntax

[System.ComponentModel.DefaultValue(true)]
public bool AutoClose { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

If you want a System.Windows.Forms.ToolStripDropDown that always stays open, set ToolStripDropDown.AutoClose to false.

Note:

Consider handling the ToolStripDropDown.Closing event instead of setting the ToolStripDropDown.AutoClose property. Inspect the ToolStripDropDownClosingEventArgs.CloseReason field in your ToolStripDropDown.Closing handler to specify custom closing logic.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0