Reputation: 3009
When we create a new WinForms app project in VS.NET, the following template code is used for the main procedure of the app:
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
What is the purpose of calling Application.SetCompatibleTextRenderingDefault with its defaultValue
parameter set to false
if all WinForms controls like Label and Button we place on forms have the UseCompatibleTextRendering
property set to false
by default?
Upvotes: 0
Views: 599