Friday, March 24, 2006

Winform 2.0 annoyance on XP

Having problems seeing your design when running you windows forms app on XP? Looks good in VS design, but colorless and dull in runtime?

Then you need to make this fix to the main method:

[STAThread]
static void Main()
{
Application.EnableVisualStyles();
// Calling DoEvents after the above method call seems to fix this issue
Application.DoEvents();
Application.Run(new Form1());
}

// Lazze

Lazzes Smart Home - 2023

Here is an overview of the components in the Smart Home as of now. More stuff than I tought :-)