Images not visible when using XP Visual Styles

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
 
P

Pete

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top