TabStop Property

Returns or sets whether the control will receive the focus when the TAB key is pressed.

Syntax

Object.TabStop [ = bTabStop ]

The TabStop property syntax has the following parts:

 

Name

Type

Description

Object

A control

A control object

bTabStop

Bool

A boolean expression that specifies whether the control will receive the focus when the TAB key is pressed.

Where

bTabStop can be one of the following:

 

Value

Description

True *

Designates the object has a tab stop.

False

Bypasses the object when the user is tabbing, although the object still holds its place in the actual tab order.

Comments

The TabStop property is restricted to those controls which use the keyboard for input.

This property enables you to add or remove a control from the tab order on a form. For example, if you are using a label control to describe another control on a form and you do not want the user to be able to tab to it, set its TabStop property to False. When the user presses the TAB key repeatedly, the focus will skip over the label.

Example

The following statement changes the AListBox TabStop so the user cannot tab to it:

lb1.TabStop=False

Applies to

 

AButton

AComboBox

ARadioButton

ACheckBox

AListBox

ATextBox

See Also

Cancel, Default, Enabled, Visible