Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 216
  • Last Modified:

Problem in CommonDialog Control

hi expert
when i user commondialog control to select font

Private Sub SelectFont_Click()
    CommonDialog1.ShowFont
End Sub

it gives this error

There are no font installed
open the fonts folder from the control panel to install fonts

any one has idea what to do in this situation
0
vsvb
Asked:
vsvb
  • 3
1 Solution
 
gbzhhuCommented:
You have to set flags before calling showfont


cdlCFScreenFonts, cdlCFPrinterFonts, cdlCFBoth
0
 
gbzhhuCommented:
Put this line before CommonDialog1.ShowFont

CommonDialog1.Flags = cdlCFBoth
0
 
gbzhhuCommented:
Can I ask why I got grade B?
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now