10368 : XP visual styles

Question

What does one need to do to enable XP visual styles in the Scrollbars in the Grid in GTP.NET?

Answer

Make sure this is called in the application Main:

static void Main()
{
  Application.EnableVisualStyles();                      <– THIS
  Application.SetCompatibleTextRenderingDefault(false);   <– AND THIS
  Application.Run(new Form1());
}

 

Leave a Reply