Search code examples
c#outlook-addin

how can I add custom button to outlook?


how can I add custom button to Outlook send mail form window ?

actually how to achive new mail form window in Application object properties ?

I try NewInspector event with but the event parameter have self inspector but inspector does not have CommandBars object !!

please help thanks


Solution

  • CommandBars were deprecated. You need to use the Fluent UI for creating a custom UI in Outlook. VSTO provides two main ways for customizing the UI in Outlook:

    1. Walkthrough: Create a custom tab by using Ribbon XML
    2. Walkthrough: Create a custom tab by using the Ribbon Designer

    Note, you can design a custom UI using the designer and then export it into an XML markup. See How to: Export a ribbon from the Ribbon Designer to Ribbon XML for more information.

    Read more about the Fluent UI (aka Ribbon UI) in the following series of articles: