FontWeight Property

Applies To

Combo Box Control, Command Button Control, Label Control, List Box Control, Report, Text Box Control, Toggle Button Control.

Description

You use the FontWeight property to specify the line width that Windows uses to display and print characters in a control.

Setting

The FontWeight property uses the following settings.

Setting

Visual Basic

Thin

100

Extra Light

200

Light

300

Normal

400

Medium

500

Semi-bold

600

Bold

700

Extra Bold

800

Heavy

900


You can set this property using the control’s property sheet, a macro, or Visual Basic. You can also use the Bold button on the Formatting toolbar.

You can set the default for this property using a control’s default control style.

Remarks

Font availability depends on your system and printer. If you select a font that your system can’t display or that isn’t installed, Windows substitutes a similar font.

A font’s appearance on screen and in print may differ, depending on your computer and printer. For example, a FontWeight property setting of Thin may look identical to Normal on screen but appear lighter when printed.

See Also

FontBold Property; FontItalic, FontUnderline Properties; FontName, FontSize Properties.