K
Ken Kee via OfficeKB.com
I am creating a Word COM-addin using C#. I am able to load my button with
text onto the Word toolbar selection. My button is an object type of
CommandBarButton. The way I construct the button as
MyButton = (CommandBarButton) oStandardBar.Controls.Add(1, omissing ,
omissing , omissing , omissing);
MyButton.Caption = "Test Button";
MyButton.Style = MsoButtonStyle.msoButtonCaption;
Since I am relatively new in developing Word COM-addin application, the
question is: how can I modify my MyButton object to load with an image
instead of text. I was searching on MSDN for the CommandBarButton class, I
was not able to get much help.
Thanks.
text onto the Word toolbar selection. My button is an object type of
CommandBarButton. The way I construct the button as
MyButton = (CommandBarButton) oStandardBar.Controls.Add(1, omissing ,
omissing , omissing , omissing);
MyButton.Caption = "Test Button";
MyButton.Style = MsoButtonStyle.msoButtonCaption;
Since I am relatively new in developing Word COM-addin application, the
question is: how can I modify my MyButton object to load with an image
instead of text. I was searching on MSDN for the CommandBarButton class, I
was not able to get much help.
Thanks.