Results 1 to 3 of 3

Thread: Common Dialog: Selecting fonts as regular files

Threaded View

  1. #1

    Thread Starter
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Common Dialog: Selecting fonts as regular files

    I am having trouble attempting to use the Common Doialog control to select font files. It will not let me select them. I don't want it to treat the files as fonts but as regular files that can be selected. how can I do this?

    If I change my filter to use
    Code:
    F.CommonDialog1.Flags = cdlOFNHideReadOnly + cdlOFNPathMustExist + cdlOFNNoReadOnlyReturn + cdlOFNAllowMultiselect + cdlOFNLongNames + cdlOFNExplorer
    F.CommonDialog1.Filter = "Fonts |*.ttf"
    I cannot select the font files even though the control will show them. But if I change the filter to
    Code:
    F.CommonDialog1.Flags = cdlOFNHideReadOnly + cdlOFNPathMustExist + cdlOFNNoReadOnlyReturn + cdlOFNAllowMultiselect + cdlOFNLongNames + cdlOFNExplorer
    F.CommonDialog1.Filter = "Fonts |*.*"
    It still will not let me select the font files, but I can select any other type of file.
    Last edited by randem; Sep 13th, 2007 at 03:14 AM.

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