How Do I change the icon of my ADXIECommandItem item?

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

How Do I change the icon of my ADXIECommandItem item?
Unable to change the icon of my ADXIECommandItem in runtime 
Stephen Ryan




Posts: 1
Joined: 2010-04-21
I am trying to change the ActiveIcon of my ADXIECommandItem in IE 8 using C# code similar to that below:


private AddinExpress.IE.ADXIECommandItem startLisCommand = new AddinExpress.IE.ADXIECommandItem( this.components );
...
this.startLisCommand.ActiveIcon = "Icons.Stop";
...
if( "something is true" )
{
...
this.startLisCommand.ActiveIcon = "Icons.Stop";
}
else
{
...
this.startLisCommand.ActiveIcon = "Icons.Start";
}


However, the icon displayed never seems to change regardless of whether the condition is true or not in the IE toolbar. Is there a re-painting method or something that i am missing? I've also tried with the InactiveIcon property. But that doesn't help either.
It would be great if anyone can help me.
Posted 21 Apr, 2010 09:23:10 Top
Sergey Grischenko


Add-in Express team


Posts: 7202
Joined: 2004-07-05
Hi Stephen.

This property cannot be changed at runtime.
Posted 21 Apr, 2010 12:25:00 Top