VSTO 2005 C# 报错问题.
现在想在OUTLOOK 2003 中加一个工具栏.
using System.Windows.Forms;
Office.CommandBar PacktCustomToolBar
Office.CommandBarButton PacktButtonA;
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
if (PacktCustomToolBar == null)
{
// Adding the commandbar to Active explorer
Office.CommandBars PacktBars = this.Application.ActiveExplorer().CommandBars;
//上面的语句报错: ThisApplication 并不包含"Application"的定义.
}
}