Visual Basic: Windows Controls
Style Property (TabStrip Control)
See Also Example Applies To
Returns or sets the appearance tabs or buttons of a TabStrip control.
Syntax
object.Style [= value]
The Style property syntax has these parts:
Part | Description |
object | An object expression that evaluates to a TabStrip control. |
value | A constant or integer that determines the appearance of the tabbed dialog box, as described in Settings. |
Settings
The settings for value are:
Constant | Value | Description |
tabTabs | 0 | (Default) Tabs. The tabs appear as notebook tabs, and the internal area has a three-dimensional border around it. |
tabButtons | 1 | Buttons. The tabs appear as regular push buttons, and the internal area has no border around it. |
tabFlatButtons | 2 | Flat buttons. The selected tab appears as pressed into the background. Unselected tabs appear flat. |
Remarks
At design time, select the Style property you want tabs or buttons from the Style list on the General tab of the Properties Page of the TabStrip control.
At run time, use code like the following to set the Style property:
' Style property set to the Tabs style.
TabStrip1.Style = tabTabs
' Style property set to the Buttons style:
TabStrip1.Style = tabButtons