ToolStripSplitButton::DefaultItem Property
.NET Framework (current version)
Gets or sets the portion of the ToolStripSplitButton that is activated when the control is first selected.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: [BrowsableAttribute(false)] property ToolStripItem^ DefaultItem { ToolStripItem^ get(); void set(ToolStripItem^ value); }
Property Value
Type: System.Windows.Forms::ToolStripItem^A Forms.ToolStripItem representing the portion of the ToolStripSplitButton that is activated when first selected. The default value is null.
If a ToolStripSplitButton has a DefaultItem, the ENTER key activates the button. Otherwise, the ENTER key activates the drop-down.
Use the DefaultItem property to synchronize the Click event of the chosen drop-down item with the item shown on the button.
.NET Framework
Available since 2.0
Available since 2.0
Show: