Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftTabsTabs.Add Method

Adds a new tab.

Syntax

VBTabIndex = object.Add(ByVal Text As String) As Integer

object

A SftTabsTabs object.

Text

The tab text to be used for the new tab.

TabIndex

Returns the zero-based index of the newly added tab.

Comments

The Add method adds a new tab.

New tabs added using the Add method are always added at the end of the list of tabs. If many tabs have to be added, the BulkUpdate property can be used to indicate a mass-update, which is significantly faster.

Tabs can be inserted at a specific location using the Tabs.Insert method. Tabs can be deleted using the Delete or Clear methods.

A maximum of 128 tabs can be added to a tab control.

Example

Private Sub Form_Load()
    Dim TabIndex As Integer
    With SftTabs1
        .BulkUpdate = True
        .Tabs.Clear
        TabIndex = .Tabs.Add("First Tab")
        TabIndex = .Tabs.Add("Second Tab")
        .BulkUpdate = False
    End With
End Sub

See Also SftTabsTabs Object | Object Hierarchy


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