?
Solved

error - no fonts installed

Posted on 2003-03-28
2
Medium Priority
?
159 Views
Last Modified: 2013-12-02
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?
0
Comment
Question by:vitanza
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 8

Accepted Solution

by:
List244 earned 80 total points
ID: 8229479
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
 
LVL 8

Expert Comment

by:List244
ID: 8229482
&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

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month12 days, 18 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question