Defines the tab's name.
| Get | |||
| VB | Name = object.Name As String | ||
| Put | |||
| VB | object.Name = Name As String |
object
Name
A String that defines the tab's Name.
The Name property defines the tab's name.
The tab's name is only used internally by an application instead of using a tab index. The tab name is not visible to the end-user of an application. The TabByName property can be used to locate tabs based on their defined name.
Private Sub Form_Load()
Dim TabIndex As Integer
Dim TabObject As SftTabsLib.SftTabsTab
With SftTabs1.Direct
.Tabs.Clear
TabIndex = .Tabs.Add("First Tab")
TabIndex = .Tabs.Add("Second Tab")
.Tab(TabIndex).Name = "ImportantTab"
TabIndex = .Tabs.Add("Third Tab")
End With
TabIndex = SftTabs1.TabByName("ImportantTab").Index
SftTabs1.Tabs.Current = TabIndex
End SubSee Also SftTabsTab Object | Object Hierarchy