Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftTabsTab.Index Property

Returns the tab's index.

Syntax

Get
VBTabIndex = object.Index As Integer

object

A SftTabsTab object.

TabIndex

Returns the zero-based index of the tab described by object. The tab index is determined by the tab's position in the control and is also returned by the methods used to add or insert tabs.

Comments

The Index property returns the tab's index.

The Index property can be used to retrieve a tab's index (or position) if a SftTabsTab object is available.

Example

Private Sub Form_Load()
    Dim TabObject As SftTabsLib.SftTabsTab
    Dim TabIndex As Integer
    With SftTabs1
        .Tabs.Clear
        TabIndex = .Tabs.Add("First Tab")
        Set TabObject = .Tab(TabIndex)
        TabIndex = .Tabs.Add("Second Tab")
        TabObject.Enabled = False ' disables the first tab
        TabIndex = TabObject.Index ' get the first tab's index
    End With
End Sub

See Also SftTabsTab Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.