ToolBarButtons Images problem

  • Thread starter Thread starter FIP
  • Start date Start date
F

FIP

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.
 
Well, most irritating problems usually have simplest solutions. DoEvents
worked just fine.

Thanks for the tips, this helps a lot.



"Mick Doherty"
 

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

Back
Top