Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftTabsTabs.Delete Method

Deletes an existing tab.

Syntax

VBobject.Delete(ByVal TabIndex As Integer)

object

A SftTabsTabs object.

TabIndex

The zero-based index of the tab to delete.

Comments

The Delete method deletes an existing tab.

A tab can only be deleted if the tab has no associated controls in the tab control's client area.

Tabs.Clear is used to delete all tabs from the tab control.

Example

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

See Also SftTabsTabs Object | Object Hierarchy


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