开发者

Not able to select a Font file from Windows Fonts folder using OpenFileDialog

开发者 https://www.devze.com 2022-12-29 20:58 出处:网络
I am trying to use the .NET Windows Form OpenFileDialog control to select a font file (not a font as you would with the FontDialog), but the dialog will not allow a mouse click to select a file in the

I am trying to use the .NET Windows Form OpenFileDialog control to select a font file (not a font as you would with the FontDialog), but the dialog will not allow a mouse click to select a file in the C:\WINDOWS\Font directory.

Any ideas for choosing a font file开发者_JAVA百科


The Fonts folder is customised. In order to make it behave like a normal folder - and allow a font file to be selected from it - you need to remove the ReadOnly and System attributes with attrib -s -r fonts. (This is for Windows XP/2003, I can't say for Vista/7)

0

精彩评论

暂无评论...
验证码 换一张
取 消