Link to home
Start Free TrialLog in
Avatar of Tom Knowlton
Tom KnowltonFlag for United States of America

asked on

Make image background on button transparent

See my screenshot:  

http://www.knowltonsoftware.com/junk/trans.gif


I want to make the white background the transparent color so the button shows through
ASKER CERTIFIED SOLUTION
Avatar of AaronReams
AaronReams

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Tom Knowlton

ASKER

Will this support TOGGLING between TWO IMAGES?
Avatar of AaronReams
AaronReams

If you want to toggle between two images...  Add two images to the imagelist and then set the button's image index property accordingly.

Cheers -A
Gotcha!

Working.....coming along very fast....I think I get it......
Okay Aaron:

The Image assignment from the ImageList to the Button at runtime is working fine....as is the Image Toggling.

BUT

The image background is still NOT transparent....still showing up white......

I am missing something dumb here I am sure.......
Hmmmm.  Strange.  

Are you sure you're using bitmaps and not icons?  
Are you sure the transparent color is set to the exact same color as your desired color?

I just tested this and getting transparent images to work can be a little quirky.  Make sure you have the TransparentColor property set to the color you want before you add the images to the image list.

Hope this helps. -A
>>>>>
I just tested this and getting transparent images to work can be a little quirky.  Make sure you have the TransparentColor property set to the color you want before you add the images to the image list.




That was it.............geeez..........I would call that a BUG.........LOL......
Yeah, I would think that's a bug also.  

Right off hand, I'm not sure about your other question... sorry.  I'll try take a closer look at it if I get a chance later in the day.  

Good luck -A
Thanks Aaron!!!!   You do good work in this TA.....I always appreciate your help!!!
Thanks knowlton!  Always glad to help.  -A.R