Operations on multiple form postings

B

Bill Le May

I'm designing an Outlook application for handling Program Change Requests
posted in a public folder. I want to be able to perform certain operations
on multiple forms within a public folder, such as assign several of them to
a person. Ideally, I would highlight several postings, then right-click
them and have a command of my choice in the context menu. Alternatively,
could I have a button or menu command somewhere on Outlook to perform the
action? I have Sue's book Microsoft Outlook Programming, but didn't see an
example of what I'm talking about.

Thanks for any ideas,

Bill
 
S

Sue Mosher [MVP-Outlook]

Multiple "items," not "forms." An item is the data record. A form is the
user-interface layout and code template.

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.
 
B

Bill Le May

Sue Mosher said:
Multiple "items," not "forms." An item is the data record. A form is the
user-interface layout and code template.

Clumsily put, on my part.
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.

Thanks Sue, I will give these a look.
 
S

Sue Mosher [MVP-Outlook]

Also, I forgot to mention that if you use a form custom action, the custom
action appears in the context menu only when a single item is selected, not
multiple items.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top