Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

CommoneDialog

any one know how to remove the
font style list or items from the font dialog box
CommoneDialog.Flags = cdlCFBoth
CommoneDialog.ShowFont
[153 byte] By [imosha] at [2007-11-11 6:49:36]
# 1 Re: CommoneDialog
it is not that easy.
if you just want to display the name of the available fonts in a listBox, you can use:

Private Sub Form_Load()
Dim k As Long
For k = 0 To Screen.FontCount - 1
List1.AddItem Screen.Fonts(k)
Next
End Sub

Marco
mstraf at 2007-11-11 17:27:56 >