Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftTabsTabs.VisibleCount Property

Returns the number of visible tabs.

Syntax

Get
VBCount = object.VisibleCount As Integer

object

A SftTabsTabs object.

Count

Returns the total number of visible tabs in the tab control.

Comments

The VisibleCount property returns the number of visible tabs.

Visible tabs are tabs whose Visible property is set to True. Hidden tabs are not included in the count of visible tabs.

Example

Private Sub Form_Load()
    Dim TabIndex As Integer
    With SftTabs1
        .Tabs.Clear
        TabIndex = .Tabs.Add("First Tab")
        .Tabs.Current = TabIndex
        TabIndex = .Tabs.Add("Hidden Tab")
        .Tab(TabIndex).Visible = False
        TabIndex = .Tabs.Add("Third Tab")
        MsgBox(.Tabs.VisibleCount & " tabs are visible")
    End With
End Sub

See Also SftTabsTabs Object | Object Hierarchy


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