Adding custom context menu to contacts in C#

  • Thread starter Thread starter Mark A. Richman
  • Start date Start date
M

Mark A. Richman

Is it possible to add a custom context menu to contacts in C#?
I can easily add a CommandBar.

- Mark
 
Outlook does not directly expose the right-click context menu in its
CommandBars collection. You will, however, see a new right-click command is
when the item selected is using a custom form that includes one or more
custom actions. You can also add a custom action without using a custom
form, as demonstrated at http://www.outlookcode.com/codedetail.aspx?id=526

Richard Kagerer has posted a code sample at
http://www.outlookcode.com/codedetail.aspx?id=314 that shows how you might
trick Outlook into exposing the context menu through Explorer.CommandBars.

The C++ sample add-in at http://www.codeproject.com/atl/outlook2k3addin.asp
also shows a technique for working with the context menu.

FYI, there is a newsgroup specifically for general Outlook programming
issues "down the hall" at microsoft.public.outlook.program_vba or, via web
interface, at
http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.outlook.program_vba
 
Thanks for the info...I use C#, by the way. The interop assembly seems
useful so far.
 
Back
Top