How do you add an image to the adxCommandBarPopup

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

How do you add an image to the adxCommandBarPopup
adxCommandBarPopup does not have an image property 
Leo Linder




Posts: 3
Joined: 2006-05-17
What would the best way to add an image to the adxCommandBarPopup as it does not have an image property that can be set?

Thanks!

Leo
Posted 17 May, 2006 01:16:53 Top
Leo Linder




Posts: 3
Joined: 2006-05-17
When I cast the control as (in this case) button

this.adxCommandBarPopupXXX.AsButton.ImageList = this.XXXImages;
this.adxCommandBarPopupXXX.AsButton.Image = 47;
this.adxCommandBarPopupXXX.AsButton.ImageTransparentColor = System.Drawing.Color.Transparent;

The register Wizard throws an exception..

Thanks :)
Leo
Posted 17 May, 2006 02:22:55 Top
Sergey Grischenko


Add-in Express team


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

It is not possible to add an image to Office popup controls.
As to the AsButton property, it is the same thing as the 'as' operator in C#. You can use this property with the ADXCommandBarControl component if you are sure that the current instance is the ADXCommandBarButton component. Otherwise, you will get the null reference exception.
Posted 17 May, 2006 07:35:54 Top