Hi Mike,I'm just trying in these days to port some custom functionalities from 9.3.1 to 10, using add ins.To change a command style I'm using your same method with only one difference: the UID.The code is C#:
UIDClass p_UID = new UIDClass();
p_UID.Value = ThisAddIn.IDs.<ButtonID>;
ICommandItem p_CommandItemLogin = ((IDocument)ArcMap.Document).CommandBars.Find(p_UID, false, true) as ICommandItem;
p_CommandItemLogin.Style = ESRI.ArcGIS.SystemUI.esriCommandStyles.esriCommandStyleIconAndText;
p_CommandItemLogin.Refresh();
The ButtonID is the "id" value in the tag "Button", in the config.esriaddinx, but there's no need to write it, you should find it as a static value from ThisAddIn.IDs.Instead, I'm looking for a method to change the image of a button after some actions.Something like the old:
base.m_bitmap = new Bitmap(GetType(), bitmapResourceName);
Can you help me for this problem?Thank you.Sonia