Can we add an image to CommandBarPopup control
Thanks
Visual Studio Tools for Office
Hi JL,
Are you trying to add an Item with icon to context menu Look at this thread please: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1968522&SiteID=1
We should set the buttonĄ¯s style to Microsoft.Office.Core.MsoButtonStyle.msoButtonIconAndCaption. And use AxHost to convert a picture and assign it to button.Picture property. Hope it helps!
Thanks
Ji
CommandBarButton object has a Style property, but CommandBarPopup object does not have any such property. I want to add an icon/image to CommandBarPopup object.
CommandBarPopup is a container control, and we can only set its sub itemsĄ¯ icon. So it is unachievable to add picture to a CommandBarPopup control.
Thanks
Ji