Library code snippets
View Fonts
By Chris2, published on 14 Jul 2001
View Fonts
Add a combo box named Combo1 and a label named Label1 then add the following code:
Dim i As Long
Private Sub Combo1_Click()
Label1.Font = Combo1.Text
Label1.Caption = "Sample"
Label1.FontSize = 25
End Sub
Private Sub Form_Load()
For i = 0 To Screen.FontCount - 1
Combo1.AddItem Screen.Fonts(i)
Next
End Sub
Related articles
Related discussion
-
Key_Press() event for text box
by Aquila (1 replies)
-
Regarding Visual Basic Programme
by manjunathsl2007 (0 replies)
-
how do you hide all in VB6
by CapnJack (1 replies)
-
Problem with Input File
by novavb6 (3 replies)
-
How to produce a txt file with a table??
by novavb6 (1 replies)
Hi, good work.
Your a very big help, in my thesis.
Thanks..
I hope you can also help me,in font size and font behavior, like bold, regular and italic.
Thank you again
I will appreciate your respond =)
layne.
This thread is for discussions of View Fonts.