Add button to form menu bar

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to add a button to the menu bar of a message class form. For example, I would like to add a button next to the 'Check Names' button. If I could add this button using a .NET add-in, that would be my preference. Does anyone have any sample code they could share or insight into how I would accomplish this?
I am able to add buttons to the Standard Outlook menu bar, but am having trouble trying to add a button to the menu bar of a message form
Thanks.
 
There are different "kinds" of menu bars depending on where they are being
displayed. When you are working with the Explorer object (Outlook itself),
the CommandBars collection is different than the CommandBars collections
exposed through the Inspector object (a message window). You don't need to
use .NET specifically to work with custom menus and buttons, but you will
need to add a reference in your VBA or COM Add-In project to the Microsoft
Office Object library.

For a good overview of working with custom menus and buttons in
Outlook/Office, see:

Programming Microsoft Office Command Bars
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnofftalk/html/office05022002.asp

More Programming with Microsoft Office Command Bars
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnofftalk/html/office05022002.asp

--
Eric Legault, B.A., MCP, MCSD, MVP - Outlook
ImagiNET Resources Corp.
http://www.imaginets.com


Shawn Carlson said:
I would like to add a button to the menu bar of a message class form. For
example, I would like to add a button next to the 'Check Names' button. If
I could add this button using a .NET add-in, that would be my preference.
Does anyone have any sample code they could share or insight into how I
would accomplish this?
I am able to add buttons to the Standard Outlook menu bar, but am having
trouble trying to add a button to the menu bar of a message form.
 
Back
Top