Click here to Skip to main content
15,879,474 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Does anyone know what the default text is in C#. i.e. for labels etc... I am using VS 2004.
By default text I mean when you drag a label on to a form and then type some text for it, what font is the preselected one by C# i.e. in VB 2008 Express it is MS Sans Serif ... I hope this helps
Posted
Updated 28-Apr-11 4:42am
v2
Comments
Sandeep Mewara 28-Apr-11 10:34am    
"Default text" as in?
scott d hopkins 28-Apr-11 10:43am    
By default text I mean when you drag a label on to a form and then type some text for it, what font is the preselected one by C# i.e. in VB 2008 Express it is MS Sans Serif ... I hope this helps

"label1" if you drag and drop it in the designer...
 
Share this answer
 
Comments
scott d hopkins 28-Apr-11 10:53am    
By default text I mean when you drag a label on to a form and then type some text for it, what font is the preselected one by C# i.e. in VB 2008 Express it is MS Sans Serif ... I hope this helps
The designer may assign default text, but otherwise the default text is String.Empty. BTW there was VS 2003 and VS 2005 but there is no VS 2004.

[Edit]
~~~~~~~~~~

Update based on your comment. In C#, the designer defaults to this font : Microsoft Sans Serif, 8.25pt
 
Share this answer
 
v2
Comments
scott d hopkins 28-Apr-11 10:56am    
By default text I mean when you drag a label on to a form and then type some text for it, what font is the preselected one by C# i.e. in VB 2008 Express it is MS Sans Serif ... I hope this helps ... and I don't have the VS version which is why I am asking because I am having some funny screen activity so I thought maybe I don't have the necessary font the developer used for this GUI ... any help would be appreciated
Nish Nishant 28-Apr-11 11:00am    
C#, it's Microsoft Sans Serif, 8.25pt

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