Toolbar buttons dont' show

K

Keith Patrick

I just wrote a quick Windows app with some toolbar buttons. In design view,
the buttons show up fine, but when I run the app, the toolbar button images
don't show up. Is there some simple setting that I am missing? I've tried
using both .GIF and .BMP format, and both show up fine in the designer
(although the GIF is the only one that has transparency working normally).
 
K

Keith Patrick

Heh...musta had a bit too much to drink tonight :) Just saw a nearly
identical post a few messages down. The explanation, though, (Windows not
supporting themed buttons with images) screams "LAAAAME" anyway, though.
 
P

Pete

Are you using EnableVisualStyles? If so use Application.DoEvents immediately
after it.

-- Pete
 
K

Keith Patrick

That did the trick. Thanks! I was worried I was going to have to do manual
painting. MUCH easier.
 
H

Herfried K. Wagner [MVP]

Hello,

Keith Patrick said:
Heh...musta had a bit too much to drink tonight :) Just saw
a nearly identical post a few messages down. The explanation,
though, (Windows not supporting themed buttons with images)
screams "LAAAAME" anyway, though.

Themed toolbar buttons _are_ supported by Windows XP.
 

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