Visual Basic Reference
The StdFont object contains information needed to format text for display in the interface of an application or for printed output.
You frequently identify a StdFont object using the Font property of an object that displays text (such as a Form object or the Printer object).
To create a StdFont object, use code like the following:
Dim X As New StdFont
If you put a TextBox control named Text1 on a form, you can dynamically change its StdFont object to another using the Set statement, as in the following example:
Dim X As New StdFont X.Bold = True X.Name = "Arial" Set Text1.Font = X