Re: variable length arguments
- From: NA_AB <NAAB@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 9 Jan 2009 06:36:04 -0800
hey Cindy, apologies for having given a totally irrelevant subject line,
unknowingly I missed it.
the code you asked for is:
public void OnStartupComplete(ref Array custom)
{
try{
commandBar =
(CommandBar)myApplication.CommandBars.Add("MYCommandBar",Type.Missing,Type.Missing, true);
commandBar.Visible = true;
this.commandBar.Position = MsoBarPosition.msoBarTop;
}
catch (Exception e)
{
System.Windows.Forms.MessageBox.Show(e.Message);
}
try
{
firstButton = (CommandBarButton)commandBar.Controls["GUIDE"];
}
catch ( Exception )
{
firstButton =
(CommandBarButton)commandBar.Controls.Add(MsoControlType.msoControlButton,
Type.Missing,Type.Missing, Type.Missing, Type.Missing);
firstButton.Caption = "GUIDE";
firstButton.FaceId = 86;
firstButton.Click +=
new _CommandBarButtonEvents_ClickEventHandler(ButtonClick);
}
}
.
- Follow-Ups:
- Re: variable length arguments
- From: Cindy M .
- Re: variable length arguments
- References:
- variable length arguments
- From: NA_AB
- Re: variable length arguments
- From: Cindy M .
- variable length arguments
- Prev by Date: RE: VSTO 3 Word Add-In - ribbon XML does not refresh
- Next by Date: RE: Event Handler for OLE objects in Excel
- Previous by thread: Re: variable length arguments
- Next by thread: Re: variable length arguments
- Index(es):