September 24, 2003

EnableVisualStyles and ImageList

It would appear that due to a bug in EnableVisualStyles you have to call Application.DoEvents after the call to Application.EnableVisualStyles or your image lists won't work properly any more. Hope this helps someone.

Posted by Simon at September 24, 2003 04:53 PM

I had more problems with Application.EnableVisualStyles. When I displayed a dialog from within different assembly than the starting one, the dialog had not the XP theme look. Moreover, if I displayed the dialog modally, and the user closed it, the application crashed.

However, your fix cures it all! Thanks!


Posted by Michal Sevcenko at Nov 18, 2003 9:07 AM