System.Windows.Forms.ToolStripDropDown.Close Method

Closes the System.Windows.Forms.ToolStripDropDown control for the specified reason.

Syntax

public void Close (ToolStripDropDownCloseReason reason)

Parameters

reason
One of the System.Windows.Forms.ToolStripDropDownCloseReason values.

Remarks

Use the ToolStripDropDown.Close(ToolStripDropDownCloseReason) method to close a System.Windows.Forms.ToolStripDropDown control under specific conditions, such as when an application is started or an item is selected by clicking the control, if the focus changes, or if specified keyboard action occurs.

Requirements

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