EnableVisualStyles Problem

jaeman

Member
Joined
Jul 15, 2004
Messages
10
Location
Australia
Programming Experience
1-3
I'm having trouble when using visualstyles with the toolbar icons, the icons don't appear but you can clearly see each button is enabled.

The icons are 32bit bitmaps contained in an imagelist, they appear as per usual when Application.EnableVisualStyles() is not present.

I hope i've explained the problem enough for someone to be able to fix the problem. If not just let me know what i haven;t explained properly.

Cheers Jaeman...
 
The EnableVisualStyles method causes some issues when you are using an ImageList, which you will be to display images on tool bar buttons. To fix this issue you must follow the call to Application.VisualStyles with a call to Application.DoEvents.

Note that you may like to check out the free Skybound VisualStyles component from the link in my signature, which fixes all the issues that VS.NET 2003 has with visual styles.
 
Back
Top