none
context menu RRS feed

Answers

  • In versions before Outlook 2007, Outlook does not directly expose the right-click context menu in its CommandBars collection. You will, however, see a new right-click command 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. Don't use this technique on messages, though!!!

    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. 

    Outlook 2007 provides Application-level events for the most commonly used context menus.

    Wednesday, May 9, 2007 1:22 PM
    Moderator

All replies

  • In versions before Outlook 2007, Outlook does not directly expose the right-click context menu in its CommandBars collection. You will, however, see a new right-click command 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. Don't use this technique on messages, though!!!

    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. 

    Outlook 2007 provides Application-level events for the most commonly used context menus.

    Wednesday, May 9, 2007 1:22 PM
    Moderator
  • i know there is in www.outlookcode.com sample

     but these sample in outlookcode in vb and not complete

    like ContextButton_Click from where it fire or where the event embed

    and the other in codeproject in c++

    so i need in c# or in vb but it could be complete

    plz

    Wednesday, May 9, 2007 1:45 PM
  • It's not clear which sample you are referring to or what you think is not complete. If you have specific questions, you can ask them in the discussions for the specific code samples.

     

    The techniques involved are all hacks of one sort or another anyway. Outlook 2007 is the first version with a fully supported set of six context menu events.

    Thursday, May 10, 2007 1:55 PM
    Moderator