Returns the SftTabsTabs object.
Get
| VB | Set refTabsObj = object.Tabs As SftTabsTabs |
object
refTabsObj
Returns a reference to the control's SftTabsTabs object.
The Tabs property returns the SftTabsTabs object.
The Tabs property returns the SftTabsTabs object for the control. The default properties and behavior of all tabs can be updated using the returned SftTabsTabs object.
A SftTabsTab object for a specific tab can be retrieved using the Tab property.
Private Sub Form_Load()
With SftTabs1.Direct
.Tabs.Clear
.Tabs.Add "First Tab"
.Tabs.Add "Second Tab"
End With
End Sub
Call SftTabs1_Switched
End Sub
Private Sub SftTabs1_Switched()
With SftTabs1
' The tab page is now active
' Replace the tab picture with the image that shows that
' the page has now been visited
Set .Tab(.Tabs.Current).Image.Picture = Image1(.Tabs.Current)
' Update the form's title
Form1.Caption = .Tab(.Tabs.Current).Text & " Options"
End With
End Sub
Private Sub TabPos_Click()
With SftTabs1.Tab(SftTabs1.Tabs.Current)See Also SftTabs Object | Object Hierarchy