CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Location
    Bogotá, Colombia
    Posts
    37

    .ShowFont common dialog

    In my current project when I try to call the common dialog font window

    dlg1.ShowFont

    I get the message that no fonts are installed and to open the "Fonts" folder in the control panel and install the fonts. According to the control panel I have 90 fonts installed. I tried to run the procedure on another computer and got the same result.

    Any ideas as to what may be causing this problem?

    Thanks,

    Andrew


  2. #2
    Join Date
    Sep 1999
    Location
    Red Wing, MN USA
    Posts
    312

    Re: .ShowFont common dialog

    You need to tell it which Fonts to List, otherwise you'll just get the "No Fonts Installed" Error, eg.

    With CommonDialog1
    .DialogTitle = "Screen Fonts Available.."
    .Flags = cdlCFScreenFonts
    .ShowFont
    End With




    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]
    Aaron Young
    Senior Programmer Analyst (Red Wing Software)
    Certified AllExperts Expert

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured