Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ShowFont = "No fonts installed"

Status
Not open for further replies.

JESTAR

Programmer
Feb 13, 2002
213
GB
When I try to bring u ShowFont, I get an error saying "No fonts installed. Go to Control Panel and the Fonts folder".

I have loads of fonts installed. I try commondialog1.initdir = "C\windows\fonts" but it still doesn't work.
 
hello JESTAR,

The showFont can 't be started without Flags.
You have to tell the commondialog wich fonts you want to use.

the following Flags are available:
cdlCFScreenFonts for the screen fonts
cdlCFPrinterFonts for the printerfonts
cdlCFBoth for screen- OR printerfonts
cdlCFWYSIWYG for screen- AND for printer

so add the following code in your form

commondialog1.Flags = cdlCFBoth + cdlCFEffects + cdlCFlimitSize

hopefully that will resolve your problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top