TabPageText Property
Applies To
TabControl
Description
Sets the tab text that is displayed on the Tab control.
Usage
GGet Form.Control.TabPageText(index), var
GSet Form.Control.TabPageText(index), value
- Form
- Name of a form or string variable containing a form name.
- Control
- Name of a control or string variable containing a control name.
- Index
- An index of the Tab control.
- var
- String variable that will contain the value of the property.
- value
- String expression for the new value of the property
Values
The text to assign to a tab.
Default: TabXX
See Also
TabControl, TabEditor
Example
' Gets the tab text for index 2 that is currently set.
GGet frmMain.tabControl1.TabPageText(2), backColor
' Sets the tab text for index 0 to "Monitor."
GSet frmMain.tabControl1.TabPageText(0), "Monitor"