Hi i want add image icon for my CommandBarPopup button at standard commandbar like Send & Receive Button.
Popup is working, i have Buttons with icons there but I need top icon in popup (next to small dropdown icon)
Code for creating popup:
moznosti = (Office.CommandBarPopup)standardToolbar.Controls.Add(
Office.MsoControlType.msoControlPopup,
System.Reflection.Missing.Value,
System.Reflection.Missing.Value,
System.Reflection.Missing.Value,
true);
// adding buttons to popup is ok:
nastaveni = (Office.CommandBarButton)moznosti.Controls.Add(1,missing, missing, missing, true);
nastaveni.Caption = "Na&stavení...";
global.SetImage(nastaveni, Properties.Resources.settings);
nastaveni.Style = Office.MsoButtonStyle.msoButtonIconAndCaption;
nastaveni.Click += new Office._CommandBarButtonEvents_ClickEventHandler(ButtonSettingsClick);
... etc...
but i need something like this:
moznosti.Picture = ...
but there is no Picture variable (like in CommandBarButton object)