【发布时间】:2011-06-26 14:38:00
【问题描述】:
如何使用 VSTO 在 Outlook 2007 的新消息窗口和收件箱窗口中创建插件按钮。
此代码将按钮添加到 Outlook 2007 的主窗口。
//Define the existent Menu Bar
menuBar = this.Application.ActiveExplorer().CommandBars.ActiveMenuBar;
//Define the new Menu Bar into the old menu bar
newMenuBar = (Office.CommandBarPopup)menuBar.Controls.Add(
Office.MsoControlType.msoControlPopup, missing,
missing, missing, false);
我正在使用为 Office 2007 安装了 VSTO 的 Visual Studio 2005
【问题讨论】:
标签: c# outlook vsto outlook-2007