TabFixedHeight, TabFixedWidth Properties

Applies To   Tab control.

Description

You can use the TabFixedHeight and TabFixedWidth properties to specify or determine the height and width of the tabs on a tab control.

Setting

The TabFixedHeight and TabFixedWidth property settings are a value that represents the height and width of tabs in the unit of measurement specified in the Regional Settings Properties dialog box in Windows Control Panel. If you set these properties to zero, the tabs automatically adjust to the height or width of the tab contents.

You can set these properties by using the tab control's property sheet, a macro, or Visual Basic.

You can also set the default for these properties by using a control's default control style or the DefaultControl method in Visual Basic.

In Visual Basic these properties use a Long Integer value representing the height or width of the tabs in twips and can be set in any view.

Note To use a unit of measurement different from the setting in the Regional Settings Properties dialog box in Windows Control Panel, specify the unit, such as cm or in (for example, 5 cm or 3 in).

Remarks

You can't change the color of a tab control. If the tabs don't cover the width of the tab control, the area behind the tabs is displayed. If you place a tab control on an object with a different color than the tab control, you should make sure that the tabs cover the control's background area.

See Also   Style property.