Outlook context menu

Add-in Express™ Support Service
That's what is more important than anything else

Outlook context menu
get mail item selected after right click 
Stefano Rossi




Posts: 1
Joined: 2015-04-23
Hi, I added a RibbonContextMenu to my addin for Outlook in mail Explorer following your https://www.add-in-express.com/creating-addins-blog/2012/10/22/customize-outlook-menu-bar-context-menus/.
So when I right-click on a mail in the mailbox, I see my new menu element in the context menu.

Then i added a method for on-click event to the menu button.
This method has this definition (auto-generated):

private void onClickMethod(object sender, IRibbonControl control, bool pressed)


Here I need to get the mail item that i've activated. There is a way to get it from the parameters?

thanks in advance

I use C# on Visual Studio 2010
Posted 23 Apr, 2015 02:04:57 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Hello Stefano,

Please check section Determining a ribbon control's context at https://www.add-in-express.com/docs/net-ribbon-components.php.


Andrei Smolin
Add-in Express Team Leader
Posted 23 Apr, 2015 02:53:44 Top