TabStop Property

ToolStrip::TabStop Property

 

Gets or sets a value indicating whether the user can give the focus to an item in the ToolStrip using the TAB key.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
property bool TabStop {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

true if the user can give the focus to an item in the ToolStrip using the TAB key; otherwise, false. The default is false.

When the user presses the TAB key, the input focus is set to the next ToolStripItem in the tab order. Controls with a TabStop property value of false are not included in the collection of controls in the tab order. You can manipulate the tab order by changing the TabIndex property value for controls in the collection.

The following code example demonstrates the syntax for setting common ToolStrip properties, including the TabStop property.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft