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
I cannot select the font files even though the control will show them. But if I change the filter toCode:F.CommonDialog1.Flags = cdlOFNHideReadOnly + cdlOFNPathMustExist + cdlOFNNoReadOnlyReturn + cdlOFNAllowMultiselect + cdlOFNLongNames + cdlOFNExplorer F.CommonDialog1.Filter = "Fonts |*.ttf"
It still will not let me select the font files, but I can select any other type of file.Code:F.CommonDialog1.Flags = cdlOFNHideReadOnly + cdlOFNPathMustExist + cdlOFNNoReadOnlyReturn + cdlOFNAllowMultiselect + cdlOFNLongNames + cdlOFNExplorer F.CommonDialog1.Filter = "Fonts |*.*"




Reply With Quote