Images & Transparency for CommandBarButtons created at runtime

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

Images & Transparency for CommandBarButtons created at runtime
 
Ryan Farley


Guest


I just thought I would try to save someone else some grief. If you are creating CommandBarButtons at runtime, the ImageTransparency must be set *before* you set the image index for your image. If you set the Image Transparency after you set the index of the image your transparency will not apply.

Doh.

I wish I would have known that two days ago, could have saved me some headaches!
Posted 16 Oct, 2006 18:38:12 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Ryan.

Yes, correct. The ImageTransparentColor property should be set first.
Posted 17 Oct, 2006 10:03:47 Top