System.Windows.Forms.ToolStripSplitButton.DefaultItem Property

Gets or sets the portion of the System.Windows.Forms.ToolStripSplitButton that is activated when the control is first selected.

Syntax

[System.ComponentModel.DefaultValue(null)]
[System.ComponentModel.Browsable(false)]
public ToolStripItem DefaultItem { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

If a System.Windows.Forms.ToolStripSplitButton has a ToolStripSplitButton.DefaultItem, the ENTER key activates the button. Otherwise, the ENTER key activates the drop-down.

Use the ToolStripSplitButton.DefaultItem property to synchronize the Control.Click event of the chosen drop-down item with the item shown on the button.

Requirements

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