Visual Basic: MSTab Control

TabMaxWidth Property (SSTab Control)

See Also   Example   Applies To

Returns or sets the maximum width of each tab on an SSTab control.

Syntax

object.TabMaxWidth [ = width ]

The TabMaxWidth property syntax has these parts:

Part Description
object An object expression that evaluates to an SSTab control.
width A numeric expression that determines the maximum width of each tab in the scale mode of its container.

Remarks

When the Style property setting is ssStyleTabbedDialog and the TabMaxWidth property is set to zero (0), the SSTab control automatically sizes the tabs, based on the TabsPerRow property, to fit evenly across the control.

If you select the ssStylePropertyPage setting in the Style property, the TabMaxWidth property is ignored. The width of each tab adjusts automatically to the length of the text in the TabCaption property.