Handling ContextMenuClose event using Reflection RRS feed

  • Question

  • Hello,

    I'm writing an add-in that has to support both Outlook 2003 and Outlook 2007. If my add-in is used with Outlook 2007 I need to add a custom button to the context menu. I can easy handle the event ItemContextMenuDisplay using Reflection.
    But there is a problem if I try to add a handler for ContextMenuClose event. The handler has the input parameter "ContextMenu" with the type "Microsoft.Office.Interop.Outlook.OlContextMenu". I do not have this enum in the Outlook 2003 interop assembly.
    Is there any way to resolve this problem?

    Best regards, 

    Tuesday, March 20, 2012 1:32 PM


All replies