posted @ Saturday, June 11, 2005 9:39 AM
Yesterday I was working on an internal tool that contains several controls, one being a TreeView control. I noticed that my images for each node within my TreeView weren't showing up. As it turns out, there is an issue with calling Application.EnableVisualStyles() in 1.1 of the .NET Framework that causes TreeNode images to not display. To work around this, you can call Application.DoEvents() to process all Windows messages that are in queue before the instance of your application is invoked. Luckily, this has been fixed in 2.0.