Click here to Skip to main content
14,870,618 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I am doing add in application for Outlook 2013. It works fine for Outlook2007 and 2010. But when installed it on Windows 8 and trying to use it in Office 2013, it get available in Active add in list but do not get button in outlook menu. Tools menu also not getting.

Can somebody help please.
In my application there is Connect.cs class file exist in which i do coding.

For loading button in Outlook i have written code as follows.-

public void LoadButtons()
                //add a menu item to the Tools Menu Item
                CommandBar commandBarTools = applicationObject.ActiveExplorer().CommandBars["Tools"];
                CommandBarControl cmdBarControl = commandBarTools.Controls.Add(MsoControlType.msoControlButton, 1, "", 1, true);
                cmdBarControl.Visible = true;
                cmdBarControl.Caption = "Open My Application";
                //add an event handler for the new button
                CommandBarButton Movebutton = (CommandBarButton)cmdBarControl;
                Movebutton.Click += new _CommandBarButtonEvents_ClickEventHandler(Movebutton_Click);
                Movebutton.Visible = true;              
            catch (System.Exception ex)

[edit]Code block added[/edit]
Updated 26-Aug-13 3:20am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900