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