开发者

Problem with Outlook add in

I am trying to build a simple Outlook 2007 Add-in using Visual Studio 2010 and .NET framework 4. I am just dis开发者_JAVA技巧playing a MessageBox from the ThisAddIn.StartUp() method. The following is the code:

private void ThisAddIn_Startup(object sender, System.EventArgs e)
        {
            MessageBox.Show("Addin started");
        }

When I try to run the project, Outlook is started but the ThisAddIn.StartUp method is not being called. Can anyone help me solve this problem?

Thanks, Rakesh.


Make sure the add-in is active in "Trust Center" > "Add-ins".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜