error - no fonts installed

Here's my code:

Private Sub mnuFont_Click()
    CommonDialog1.ShowFont
End Sub

when this is executed I get a message that says:

There are no fonts installed.
Open the Fonts folder from the Control Panel to install fonts.

What's up with that?
vitanzaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

List244Commented:
People do this all the time, You must pick flags for the common dialogs font, you cant just do showfont

try

&h400 Windows fonts only no symbol fonts
&h3 List printer and screen fonts
&h10000 allow only existing fonts
&h20000 Only list scalable fonts
&h40000 List only True type fonts so then do
&h100 Enables strikethrough underline and colors

Private Sub mnuFont_Click()
   CommonDialog1.Flags = &h3 or &h40000 or &h100
   CommonDialog1.ShowFont
End Sub

That is a basic example on how to use common dialog for fonts.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
List244Commented:
&h400 Windows fonts only no symbol fonts
&h3 List printer and screen fonts
&h10000 allow only existing fonts
&h20000 Only list scalable fonts
&h40000 List only True type fonts so then do
&h100 Enables strikethrough underline and colors

Those are notes, dont add them to your code only add the command button code
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Fonts Typography

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.