Job Lot

Can we add an image to CommandBarPopup control

Thanks




Re: Visual Studio Tools for Office Can we add an image to CommandBarPopup control?

Ji Zhou ¨C MSFT

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






Re: Visual Studio Tools for Office Can we add an image to CommandBarPopup control?

Job Lot

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.






Re: Visual Studio Tools for Office Can we add an image to CommandBarPopup control?

Ji Zhou ¨C MSFT

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






Re: Visual Studio Tools for Office Can we add an image to CommandBarPopup control?

Job Lot

thanks.