Invisible toolbar buttons

T

Tom Jones

I have added a toolbar to my WinForms app. The toolbar has 3 buttons and a
separator. I have associated an imagelist with the toolbar and setup the
images and buttons appropriately.

At design-time I can see the bitmaps on the buttons, but when I run the
application the buttons are blank.

After googling around a bit I saw that some people got around this by making
sure that
this.toolBar.Buttons.AddRange (in InitializeComponent()) came at the very
bottom of the toolbar section. I made this change but it did not affect the
results.

Can anyone think of anything else that might be going wrong here?

Thanks,
Tom
 
G

Guest

Do you call Application.EnableVisualStyles() ?
If so add:

Application.EnableVisualStyles();
--> Application.DoEvents(); <--
 

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