HeaderPane
Main
Hide
Share Link
Print

Tab Property, SftTabs Object

Returns a SftTabsTab object given a tab index.

Syntax

Get

VBSet refTabObj = object.Tab(ByVal TabIndex As Integer) As SftTabsTab

object

A SftTabs object.

TabIndex

The zero-based index of the tab to be accessed.

refTabObj

Returns a reference to the SftTabsTab object.

Comments

The Tab property returns a SftTabsTab object given a tab index.

The Tab property returns a SftTabsTab object for the desired tab TabIndex. The properties of the tab can be updated using the returned SftTabsTab object.

Example

Private Sub Form_Load()
    Dim TabIndex As Integer
    Dim TabObject As SftTabsLib70.SftTabsTab
    With SftTabs1.Direct
        .Tabs.Clear
        TabIndex = .Tabs.Add("First Tab")
        Set TabObject = .Tab(TabIndex)
        TabObject.BackColor = vbBlue
        TabObject.BackColorActive = vbBlue
        TabObject.ForeColor = vbWhite
        TabObject.ForeColorActive = vbWhite
        .Tabs.Add "Second Tab"
    End With
End Sub

Examples

VB6 View entire sample code

    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


Last Updated 11/19/2026 - (email)
© 2026 Softel vdm, Inc.