Click here to Skip to main content
15,878,814 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to add a new font to Visual Studio 2008 property window to set the font of a textbox.

I add the font to c:\Windows\fonts, but I am unable to use it in visual studio. Why so?
Posted
Updated 13-Feb-11 21:01pm
v2
Comments
Sandeep Mewara 14-Feb-11 3:01am    
Update from OP:
When do it all the fonts for example Menu,tool box etc are changed i want to change only one textbox font

You don't have to add fonts to Visual Studio, of course.
Your report indicates that you did not really add your font to the system, you only copied it in the directory. If not sure, try to run "Character Map" application: you won't find it.

Just add your font to the system properly using Control Panel Applet "Fonts". It will show a menu item "Files -> Install new font".

You can change the code of any control using the property Control.Font. You can also inherit font from the parent control at any level of hierarchy.

—SA
 
Share this answer
 
v2
Comments
Albin Abel 14-Feb-11 2:42am    
my 5
Sergey Alexandrovich Kryukov 14-Feb-11 2:58am    
OP commented:

When do it all the fonts for example Menu,tool box etc are changed i want to change only one textbox font
Sergey Alexandrovich Kryukov 14-Feb-11 3:02am    
In response to a comment by OP:

I added the last sentence to my Answer (what, you never looked at the Properties window before asking about it?! I had no idea that anyone may need this instruction; please look at properties and Help!).

--SA
Espen Harlinn 14-Feb-11 10:28am    
That's right, my 5
Sergey Alexandrovich Kryukov 14-Feb-11 11:17am    
Thank you,
--SA
Follow this to install the font if you are using windows 7http://www.microsoft.com/typography/TrueTypeInstall.mspx[^] and reopen the project
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900