I have a problem with displaying images (icons) on ToolBarButtons. It all
works fine at the begining, but enabling visual styles in application makes
icons on buttons invisible, but text still displays. There's no problem
without using visual styles, only with them. Can't find the answer
anywhere.
Any help would be most welcome.
Four options:
1. Move Application.EnableVisualStyles to Sub Main() and follow it with a
call to Application.DoEvents.
2. Supply a Manifest File or Manifest Resource instead of using
Application.EnableVisualStyles.
3. Create and fill the ImageList after the form has loaded instead of via
the designer.
4. Wait for VS2005 where I believe this bug has been fixed.

Signature
Mick Doherty
http://dotnetrix.co.uk/nothing.html
>I have a problem with displaying images (icons) on ToolBarButtons. It all
> works fine at the begining, but enabling visual styles in application
[quoted text clipped - 4 lines]
>
> Any help would be most welcome.
FIP - 15 Dec 2004 07:11 GMT
Well, most irritating problems usually have simplest solutions. DoEvents
worked just fine.
Thanks for the tips, this helps a lot.
> Four options:
>
[quoted text clipped - 9 lines]
> Mick Doherty
> http://dotnetrix.co.uk/nothing.html