EnableVisualStyles and ImageLists

  • Thread starter Thread starter desa
  • Start date Start date
D

desa

If I call EnableVisualStyles none the images in my ImageLists show up in my
controls anymore.

Is this a known issue? How do I fix this? I'm using VS.NET 2003.
 
Hello Desa,

Call Application.DoEvents(); after the call to
Application.EnableVisualStyles(), for example:

[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.DoEvents();
Application.Run(new Form1());
}

This method is still a little buggy, and it's recommended to use a manifest
file to enable Windows XP visual styles in your application.

Hope this help you. If you still need help, please feel free to contact me.
 
Back
Top