Defines the tab's background color (used when the tab is the current tab).
Get
| VB | Clr = object.BackColorActive As OLE_COLOR |
Put
| VB | object.BackColorActive = Clr As OLE_COLOR |
object
Clr
Defines the tab's background color (used when the tab is the current tab). Use -1 to restore the default color.
The BackColorActive property defines the tab's background color (used when the tab is the current tab).
If this property defines a tab background color (other than the default background color BackColorActive), it overrides the background bitmap (BackgroundInside) and the tab uses the specified background color when active. If defined, the Tab.BackColorActiveStart and Tab.BackColorActiveEnd properties override the BackColorActive property.
If the tab control uses Windows themes, the BackColorActive property has no effect.
' add the tab
iTab = .Tabs.Add(frmD.Caption)
' define colors
.Tab(iTab).BackColorStart = &HFEECDD
.Tab(iTab).BackColorEnd = &HE2A981
.Tab(iTab).BackColor = &HE2A981
.Tab(iTab).BackColorActiveStart = &HFEECDD
.Tab(iTab).BackColorActiveEnd = &HE2A981
.Tab(iTab).BackColorActive = &HE2A981
' define a close button for the tab
.Tab(iTab).CloseButton = True
' define a tooltip for the tab
.Tab(iTab).ToolTip = "This tab activates the form named " & frmD.Caption
' and save a reference to the MDI child form object that this
' tab represents
.Tab(iTab).Tag1 = frmDSee Also SftTabsTab Object | Object Hierarchy