Can a button'n ImageList be invalidated?

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

Can a button'n ImageList be invalidated?
 
nir zamir


Guest


Hi,

I have a button connected to an ImageList. One ImageList is for Excel 2003 and one for Excel 2007.

Since changing the button's ImageList has to do before the button is connected (correct me if I'm wrong), I set it in the AddinInitialize event.
However, since the button is not temporary, setting this again (e.g. if the user upgraded his Excel version) doesn't affect the button.
Besides making the button temporary, is there any other choice to make the button dynamically update its ImageList?

Thank you,
Nir
Posted 18 Mar, 2007 09:06:57 Top
Sergey Grischenko


Add-in Express team


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

Do you change the Image property after you change the ImageList property of the button?


P.S. Note that we take up your forum requests in the order we receive them. Besides, it may take us some time to investigate your issue. Please be sure we will let you know as soon as the best possible solution is found.
Posted 19 Mar, 2007 08:57:43 Top
nir zamir


Guest


No - the Image property is not set.
Posted 19 Mar, 2007 09:24:45 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Please set the Image property as well. Let me know if the issue still exists.
Posted 19 Mar, 2007 09:52:04 Top
nir zamir


Guest


I tried re-setting the Image property, and the issue still exists.

I just wanted to clarify, that the toolbar and button are NOT temporary, and I'm changing the ImageList property in the AddinModule constructor/AddinInitialize event.

thanks,
Nir
Posted 19 Mar, 2007 10:01:34 Top