Example Codes on the Font Properties
Example Codes on the Font Properties
Step 1:
Add the control or command button to the form:
Step 2:
Type in VB programming codes to display font size and other characteristics:
Private Sub Command1_Click()
Form1.Font.Size = 18
Form1.Font.Bold = True
Form1.Font.Italic = True
Form1.Font.Underline = True
Form1.Print "i love you"
End Sub
Step 3:
Below is the result of words with font defined previously:
No comments:
Post a Comment