I'm using the Common Dialog to select a font, but I don't want the user to be able to select attributes such as bold, italic, etc.
Is there a way to do this?
Printable View
I'm using the Common Dialog to select a font, but I don't want the user to be able to select attributes such as bold, italic, etc.
Is there a way to do this?
Add the cdlCFNoSimulations flag to the Flags propertyBest regardsVB Code:
CommonDialog1.Flags = cdlCFNoSimulations + cdlCFBoth
that doesn't seem to work for all fonts?
That's strange! What fonts doesn't it work for?
For Times New Roman, it shows all of them (bold, italic, etc) and for others like News Gothic MT, it only shows bold.
One option that you have (very anoying to user) is to simply ignore that Bold, and Italic options in the commondialog. Let the user choose what he wants, but dont do anything with Bold and Italics. I hope you know what i mean.