TabIndex属性

适用范围
Button、Label、TextBox、RadioButton、CheckBox、ListBox、ComboBox、PictureBox、GroupBox、VideoBox、LED、ProgressBar、TrackBar、StatusBar、Grid

描述
获取或设置容器内控件的选项卡顺序。

使用
GGet Form.Control.TabPageBackColor(Index), var
GSet Form.Control.TabPageBackColor(Index), value

Form
指定窗体名称或含有窗体名称的字符串变量。
Control
指定控件名称或含有控件名称的字符串。
var
取得属性值的整数变量。
value
在属性中设定的整数表达式。

数值
控件选项卡顺序的索引。

另见
Button、Label、TextBox、RadioButton、Checkbox、ListBox、ComboBox、PictureBox、GroupBox、VideoBox、LED、ProgressBar、TrackBar、StatusBar

示例

GSet frmMain.txtStatus.TabIndex, 3