Add to ADXCommandBarButton image with Trancparency

Add-in Express™ Support Service
That's what is more important than anything else

Add to ADXCommandBarButton image with Trancparency
Adina Shel

Posts: 16
Joined: 2008-05-05
In My project I added ADXCommandBarButton ,
when I add Image into ADXCommandBarButton , the image Looked with sealed color
for border and Not Trancparent color

I want to know how can to do than the border's image is Transparent?

Posted 05 Jun, 2008 08:56:29 Top
Andrei Smolin

Add-in Express team

Posts: 16061
Joined: 2006-05-11
Hello Adina,

Below is an excerpt from the manual:

Transparent Icon on a CommandBarButton
It looks like the ImageList has a bug: when you add images and then set the TransparentColor property, it corrupts the images in some way. Follow the steps below (at design-time) to get your images transparent:
Make sure the ImageList doesn't contain any images;
Set its TransparentColor property to Transparent;
Add images to the ImageList;
Choose an image in the Image property of your command bar button;
Specify the transparent color in the ImageTransparentColor property of the command bar button;
Rebuild the project.

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 05 Jun, 2008 09:23:40 Top