Defines the number of tab rows.
Get
| VB | Count = object.Rows As Integer |
Put
| VB | object.Rows = Count As Integer |
object
Count
Defines the number of tab rows.
The Rows property defines the number of tab rows.
Scrollable tab controls always have exactly one row of tabs. If the Rows property is set to a value other than 1, scrolling is automatically disabled (see Scrolling.Style).
Tabs are automatically distributed among the number of defined tab rows, based on the Tabs.LayoutMode property.
The number of rows defined must be smaller or equal to the number of available tabs, as each row displays at least one tab.
Private Sub Form_Load()
SftTabs1.Tabs.Rows = 2
SftTabs1.Tabs.Fixed = True
SftTabs1.Tabs.LeftMargin = 200
SftTabs1.Tabs.RightMargin = 200
SftTabs1.Tabs.RowIndent = 400
End Sub
Set tb = SftTabs1.Tab(SftTabs1.Tabs.Current)
tb.Enabled = Not tb.Enabled
End Sub
Private Sub SwitchStyleButton_Click()
SftTabs1.BulkUpdate = True
If SftTabs1.Style = styleSftTabsModernTop Then
SftTabs1.Style = styleSftTabsButtonsTop
SftTabs1.Tabs.Rows = 2
ElseIf SftTabs1.Style = styleSftTabsButtonsTop Then
SftTabs1.Style = styleSftTabsModernTop
SftTabs1.Tabs.Rows = 1
End If
SftTabs1.BulkUpdate = False
End SubSee Also SftTabsTabs Object | Object Hierarchy