Click here to Skip to main content
15,917,795 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I wanna change the Font Name, Size and so on seperate.

C#
this. Font.Name = "Times New Roman"


But it doesn't work
Do you have any idea? How can i change the name, size...?

Thanks for help
Posted
Updated 10-Feb-14 4:36am
v2
Comments
Richard C Bishop 10-Feb-14 10:37am    
Can you not use CSS?
Sampath Lokuge 10-Feb-14 11:22am    
Win or asp.net ?

1 solution

I hope you're using Win App.If so please try is as below.

YourLabel.Font = new Font("Times New Roman", 24,FontStyle.Bold);


Font Class
 
Share this answer
 
Comments
Member 10497425 12-Feb-14 11:25am    
Thank you very much!
Sampath Lokuge 13-Feb-14 2:17am    
You're warmly welcome. :)

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