Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#3.0
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 13-Feb-11 21:07pm
shoni k581
Edited 13-Feb-11 22:01pm
v2
Comments
Sandeep Mewara at 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
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
v2
Comments
AlbinAbel at 14-Feb-11 2:42am
   
my 5
SAKryukov at 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
SAKryukov at 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 at 14-Feb-11 10:28am
   
That's right, my 5
SAKryukov at 14-Feb-11 11:17am
   
Thank you,
--SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Follow this to install the font if you are using windows 7http://www.microsoft.com/typography/TrueTypeInstall.mspx[^] and reopen the project
  Permalink  
v2

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 195
1 Peter Leow 160
2 Zoltán Zörgő 160
3 BillWoodruff 85
4 CPallini 70
0 Sergey Alexandrovich Kryukov 9,568
1 OriginalGriff 6,901
2 Peter Leow 4,737
3 Zoltán Zörgő 4,404
4 CHill60 2,932


Advertise | Privacy | Mobile
Web01 | 2.8.150129.1 | Last Updated 7 Dec 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100