Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6118923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:29:33+00:00 2026-05-23T15:29:33+00:00

I have an Outlook 2010 addin, and I’m trying to create a custom context

  • 0

I have an Outlook 2010 addin, and I’m trying to create a custom context menu item. Whenever the user is in the Message body and right clicks, I would like to have my addin do some action on the selected text. I have a Ribbon bar that already has the actions I want, But I have no idea how to actually create the context menu item. I’ve found a couple tutorials for MailItems, but they do not seem to work within the message body. I do not want to use IContextMenuDisplay, because it is deprecated.

Can anyone be of assistance?

I’ve found:

http://www.developerzen.com/2005/04/04/adding-a-button-to-outlooks-context-menu/
http://weblogs.asp.net/avnerk/archive/2007/01/03/vsto-for-outlook-2007-building-the-add-in-part-2.aspx
http://www.roelvanlisdonk.nl/?p=1184

Edit: I’ve realized that the message body is using the Word context menu, is this possible with word?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:29:35+00:00Added an answer on May 23, 2026 at 3:29 pm

    Use this as your custom context menu xml.
    I was confused because the idMso needed for the message body is ContextMenuText,
    instead of those dealing with outlook mailitems.

    <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
     <contextMenus>
    <contextMenu idMso="ContextMenuText">
      <button idMso="FontDialog" visible="false" />
      <toggleButton id="MyToggle" label="My Toggle Button" />
      <button id="MyButton" label="My Button" insertBeforeMso="HyperlinkInsert" onAction="GetButtonID" />
      <menuSeparator id="MySeparator" />
      <menu id="MySubMenu" label="My Submenu" >
        <button id="MyButton2" label="Button on submenu" />
      </menu>
      <gallery id="galleryOne" label="My Gallery">
        <item id="item1" imageMso="HappyFace" />
        <item id="item2" imageMso="HappyFace" />
        <item id="item3" imageMso="HappyFace" />
        <item id="item4" imageMso="HappyFace" />
      </gallery>
      <dynamicMenu id="MyDynamicMenu" label= "My Dynamic Menu" getContent="GetMyContent" />
    </contextMenu>
    </contextMenus>
    </customUI>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im trying to create an outlook 2010 addin. I just created the standard project,
I have created an Outlook addin using VS2010 and VSTO 4.0. On Windows7+Outlook 2010,
I'm trying to write an Outlook Addin in C# using Visual Studio 2010 and
We have written a VSTO addin for Outlook 2010/2007. At one point, our addin
I have developed a Outlook Addin using VSTO in Visual Studio 2010, on Windows
I have a COM Outlook addin which implements a ribbon button in Outlook 2010.
I have about 100k Outlook mail items that have about 500-600 chars per Body.
We have an issue with an Outlook 2007 AddIn (created on a Windows 7
I'm working on an Outlook 2010 add-in that provides a dialog for user input.
I'm developing an Outlook 2010 Add-In in C# which adds a docked Custom Task

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.