开发者

Problem with Outlook add in

开发者 https://www.devze.com 2023-01-17 04:22 出处:网络
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

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

精彩评论

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