FontBold Property

Applies To

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

Description

You can use the FontBold property to specify whether a font appears in a bold style in a control or when you use the Print method on a report.

Setting

The FontBold property uses the following settings.

Setting

Description

True (-1)

Text is bold.

False (0)

(Default) Text isn’t bold.


You can set the FontBold property only using Visual Basic.

Remarks

To use the FontBold property on a report, first create a Print event procedure that prints the desired text.

The font’s appearance on screen and in print may differ, depending on your computer and printer. If you select a font that your system can’t display or that isn’t installed, Windows substitutes a similar font.

See Also

BorderColor Property; FillColor Property; FontItalic, FontUnderline Properties; FontName, FontSize Properties; FontWeight Property; Print Event; Print Method.

Example

You can use the following event procedure to print the current date in a bold font on a report at the coordinates specified by the CurrentX and CurrentY property settings.


Sub ReportHeader0_Print (Cancel As Integer, PrintCount As Integer)
    Me.FontBold = True
    Me.Print Date()          ' Print date in bold.Sub