HeaderPane
Main
Hide
Share Link
Print

Tag1 Property, SftTabsTab Object

Defines the tab's application-defined Variant value.

Syntax

Get

VBvData = object.Tag1 As Variant

Put

VBobject.Tag1 = vData As Variant

object

A SftTabsTab object.

vData

The Variant data stored with the tab described by object. This data is application defined and is not used by the tab control in any way.

Comments

The Tag1 property defines the tab's application-defined Variant value.

The Tag1 and Tag2 properties can be used to store application defined data (including object references). Tag1 and Tag2 are distinct properties.

Example

See MDITab Sample

Examples

VB6 View entire sample code

    Dim iTab As Integer

    lDocumentCount = lDocumentCount + 1
    Set frmD = New frmDocument
    frmD.Caption = "Document " & lDocumentCount
    frmD.Show

    ' Add a new tab associated with this MDI child window
    ' We'll save a reference to the form object in the tab's Tag1
    ' property
    With SftTabs1.Direct
        ' add the tab
        iTab = .Tabs.Add(frmD.Caption)
        ' define colors
        .Tab(iTab).BackColorStart = &HFEECDD
        .Tab(iTab).BackColorEnd = &HE2A981

See Also SftTabsTab Object | Object Hierarchy


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