SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Defines the ImageList's image index used for the tab graphic.
Get | |||
VB | Image = object.ImageIndex As Integer | ||
Put | |||
VB | object.ImageIndex = Image As Integer |
object
Image
The one-based index of the image to be used. To clear the image value, use -1.
The ImageIndex property defines the ImageList's image index used for the tab graphic.
While the ImageList and ImageIndex properties continue to be supported, the Image property should be used instead. If the Image property defines an image, the ImageList and ImageIndex properties have no effect.
The ImageIndex property and the ImageList property are used in combination to define the tab graphic for the tab.
The display and alignment of the tab's graphic component can be defined using the Tab.Align property.
If the tab's Image or Picture properties are defined, the ImageList and ImageIndex properties are ignored.
This property is not available at design-time.
Private Sub Form_Load() Dim TabIndex As Integer With SftTabs1 .Tabs.Clear TabIndex = .Tabs.Add("First Tab") Set .Tab(TabIndex).ImageList = yourImageListControl .Tab(TabIndex).ImageIndex = 1 TabIndex = .Tabs.Add("Second Tab") Set .Tab(TabIndex).ImageList = yourImageListControl .Tab(TabIndex).ImageIndex = 2 End With End Sub
See Also SftTabsTab Object | Object Hierarchy