disabled toolbar button images

S

Scott James

An exhaustive search of all dotnet groups seems to indicate that no
one has been able to solve the problem of disabled toolbar button
images providing a grey box or some other lame appearance.

Has anyone been able to solve this? From the postings it sounds like
it may have something to do with the imagelist transparency color, the
imagelist color depth, and possibly the original image file color
depth. Anyone?

Scott.
 
D

Dmitriy Lapshin [C# / .NET MVP]

Hi Scott,

How do you achieve transparency for *enabled* toolbar buttons? I can assure
you that with setting the ImageList's TransparentColor properly and having
256-colors BMPs the transparency works like a charm for me. Of course the
imagelist color depth should be set to the original image color depth, the
image list might be unable to determine the transparent color otherwise due
to possible RGB value changes related to another bit depth.
 

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