Combo Box Control, Command Button Control, Label Control, List Box Control, Report, Text Box Control, Toggle Button Control.
You can use the FontName and FontSize properties to specify these font characteristics in reports and controls.
Controls — You use these properties to specify the name and point size of the font used for text in a control.
The FontName property specifies one of the font names displayed on the property sheet, which depend on the fonts installed on your system or in your printer.
The FontSize property uses the following settings.
Setting |
Description |
8 |
(Default for all reports and controls except buttons) Text is 8-point type. |
10 |
(Default for command buttons) Text is 10-point type. |
<Other sizes> |
Text is the indicated size. |
When modifying controls, set these properties using the property sheet, a macro, or Visual Basic.
You can also set these properties using the Font Name box and the Font Size box on the Formatting toolbar.
For reports, you can set these properties in an event procedure or in a macro specified by the OnPrint event property setting.
You can set the default for these properties using a control’s default control style.
In Visual Basic, you set the FontName property using a string expression that is the name of the desired font and you set the FontSize property using a numeric expression equal to the size of the desired font.
If you select a font that your system can’t display or that isn’t installed, Windows substitutes a similar font.
FontBold Property; FontItalic, FontUnderline Properties; FontWeight Property.