Images not visible when using XP Visual Styles

  • Thread starter Thread starter Axel Schlumberger
  • Start date Start date
A

Axel Schlumberger

Hello,

I am using the new method of the .NET Framework 1.1

Application.EnableVisualStyles()

to enable the XP Visual styles in my Windows Forms application. This works
fine so far, but now the images of all my TreeView controls disappeared.
When I disable the XP Styles the icons are shown again. Any ideas?

Thanks,
Axel
 
Hi,

Axel said:
I am using the new method of the .NET Framework 1.1

Application.EnableVisualStyles()

Add "Application.DoEvents()" immediately after that line. This is a
workaround for a known bug in .net 1.1.

Pete
 
Back
Top