473,404 Members | 2,213 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

SetCompatibleTextRenderingDefault

What are the advantages and disavantages of doing a
Application.SetCompatibleTextRenderingDefault(Fals e)

on application start? I know it switches between GDI and GDI+ depending on
true and false, but why do I want to set this? I am seeing this a lot more
in code lately. thanks!
Oct 11 '07 #1
2 3011
"Smokey Grindel" <no****@nospam.comschrieb:
What are the advantages and disavantages of doing a
Application.SetCompatibleTextRenderingDefault(Fals e)

on application start? I know it switches between GDI and GDI+ depending on
true and false, but why do I want to set this? I am seeing this a lot more
in code lately.
Compatibility to the behavior of the controls in .NET 1.*.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Oct 11 '07 #2
What exactly was the behavior of controls in 1.x and how does it differ in
2.0+?
"Herfried K. Wagner [MVP]" <hi***************@gmx.atwrote in message
news:eZ**************@TK2MSFTNGP06.phx.gbl...
"Smokey Grindel" <no****@nospam.comschrieb:
>What are the advantages and disavantages of doing a
Application.SetCompatibleTextRenderingDefault(Fal se)

on application start? I know it switches between GDI and GDI+ depending
on true and false, but why do I want to set this? I am seeing this a lot
more in code lately.

Compatibility to the behavior of the controls in .NET 1.*.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Oct 12 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tim Haughton | last post by:
I've just released an article on using Test Driven Development with C# and Windows Forms. GUI's are often difficult to test, so I thought it might be of interest. The article along with the...
2
by: Peteroid | last post by:
When the application I'm working on is run it creates a panel with a Paint event customized to draw primitives (circles, rectangles, etc.), places the panel on a form, and then launches the form....
4
by: JIM.H. | last post by:
Here is the code I am having problem: static void Main(string args) { bool isPar = false; if ((args.Length == 1)) { if ((args(0).ToUpper() == "MYPAR")) { isPar = true;
2
by: Jay | last post by:
I have a windows app that looks like a dialog box. It displaya a message, with Yes/No buttons. And the Message can be different each time the windows app is started. Can I pass in the message as...
4
by: garyusenet | last post by:
I have a login form, which i have made by simply modifying the standard wizard created form from Visual C# express - when I chose a windows application. I have two buttons on my login form. ...
7
by: Jay | last post by:
In my C# code, I'm attempting to display a message box then quit the win form application I'm writing if a certain type of error occurs when the application starts up. In the main form's...
1
by: Fred W. | last post by:
What does SetCompatibleTextRenderingDefault do? The help appears lacking here. I'm having minor issues with my font sizes. Thanks - Fred
0
by: =?Utf-8?B?UGFua2Fq?= | last post by:
Please go to http://www.a2zdotnet.com/Default.aspx for step by step tutorials for beginers in ADO.Net sections. -- regards, Pankaj http://www.A2ZDotNet.com "George" wrote:
10
by: z1freeride | last post by:
I'm getting the object reference error somewhere in my code. It didn't exactly tell me where, and I think I've narrowed it down to this line: File.Move(tmpDlPath + fileName, dlPath + "\\" + set+...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.