Windows Develop Bookmark and Share   
 index > Windows Forms General > font isn't similar in RICHTEXTBOX and LABEL ...also it doesn't appear good in all resolution
 

font isn't similar in RICHTEXTBOX and LABEL ...also it doesn't appear good in all resolution

Hi, I am noticing one strange thing. I have same font type, size and other properties in a LABEL and RICHTEXTBOX. But when that form is RUN i see a difference in the font rendered. Why is it so? How can I remove that ?

http://i30.tinypic.com/xctcp1.png

Also font doesn't appear good in all screen resolutions...any solution for this ?

Thanks.
sujit1779  Tuesday, August 25, 2009 7:02 AM
I don't see a label in your screen shot. If this is a .NET 1.x app, be sure to upgrade to .NET 2.0. If you already use .NET 2.0+, make sure your Main() method in Program.cs contains this call:

Application.SetCompatibleTextRenderingDefault(false);

Hans Passant.
nobugz  Tuesday, August 25, 2009 7:00 PM
I don't see a label in your screen shot. If this is a .NET 1.x app, be sure to upgrade to .NET 2.0. If you already use .NET 2.0+, make sure your Main() method in Program.cs contains this call:

Application.SetCompatibleTextRenderingDefault(false);

Hans Passant.
nobugz  Tuesday, August 25, 2009 7:00 PM

You can use google to search for other answers

Custom Search

More Threads

• Get Visual Studio 2005 IDE Style in your Apps!
• printing a windows form to a printer
• How Can I handle Mouse events over a Form with Trancperancy Key ?
• ToolStrip: problem with DPI scaling
• StreamReader C#
• Search a string in a string...
• how can i draw a rectangle by mouse pointer.
• DataGridViewComboBoxColumn binding to a property in an List<>
• Iterate through all tab pages in tab control - how to hide this from user
• SelectedValue of ComboBox