MultiRow

Returns or sets a value indicating whether a TabStrip control can display more than one row of tabs.

Syntax

object.MultiRow [= boolean]

The MultiRow property syntax has these parts:

Part Description
object An object expression that evaluates to an object.
boolean A boolean expression that specifies whether the control has more than one row of tabs, as described in Settings.

Settings

The settings for boolean are:

Setting Description
True Allows more than one row of tabs.
False Restricts tabs to a single row.

Remarks

The number of rows is automatically set by the width and number of the tabs. The number of rows can change if the control is resized, which ensures that the tab wraps to the next row. If MultiRow is set to False, and the last tab exceeds the width of the control, a horizontal spin control is added at the right end of the TabStrip control.

At design time, set the MultiRow property on the General tab in the Properties Page of the TabStrip control. At run time, use code like the following to set the MultiRow property:

'Allows more than one row of tabs in the TabStrip control.
TabStrip1.MultiRow = TRUE