How to Add all available fonts to a combo box control.
Posted on January 4, 2009
1 2 3 4 5 6 7 8 9 10 11 | 'Fonts - How to Add all available fonts to a combo box control. 'Assume that you have a combobox named combo1 in form1. Then all you have to do 'is insert the following lines in th load event of the form1. Private Sub Form_load() Dim f As Long Combo1.Clear For f = 0 To VB.Screen.FontCount - 1 Combo1.AddItem VB.Screen.Fonts(f) Next f End Sub |