Solved

What does this mean?

Posted on 2006-11-11
2
232 Views
Last Modified: 2010-04-16
           Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new ReportGeneratorMain());

0
Comment
Question by:mathieu_cupryk
  • 2
2 Comments
 
LVL 29

Accepted Solution

by:
Nightman earned 250 total points
ID: 17922660
From the MSDN Help:

EnableVisualStyles:
This method enables Windows XP visual styles for the application. Controls will draw with visual styles if the control and the operating system supports it. To have an effect, EnableVisualStyles must be called before creating any controls in the application; typically, EnableVisualStyles is the first line in the Main function. A separate manifest is not required to enable visual styles when calling EnableVisualStyles.

SetCompatibleTextRenderingDefault
Sets the application-wide default for the UseCompatibleTextRendering property defined on certain controls.

UseCompatibleTextRendering
Gets or sets a value that specifies whether text rendering should be compatible with previous releases of Windows Forms.
 
0
 
LVL 29

Expert Comment

by:Nightman
ID: 17922672
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question