Show user defined commandbarButton when the user right clicks on Contact

V

Venugopal

Hi,

Can anybody help in creating an Add-In which needs to do the following
things

1. In OnConnecting, I need to create a commandbarButton to the popup menu,
which should be shown
when the user right clicks on a contact name.
2. I should able to fire an event when I selected the new commandbarButton.

I will be thankful, if someone can help me with the required code.

Thanks,
Venugopal
 
S

Sue Mosher [MVP]

Outlook does not expose the right-click context menu in its CommandBars collection. AFAIK, the only time you'll see a new right-click command is when the item is using a custom form with one or more custom actions.

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
V

Venugopal

Thanks, Sue Mosher for your response. I have one quick question, can I do
the following

1. Create a commandbar Button on Main Menu bar.
2. In Calendar, I will select an Appointment
3. When I click on the Commandbar Button, I should know which Appointment
Item is selected

If you can provide this, it will help me a lot.

Thanks,
Venugopal


Outlook does not expose the right-click context menu in its CommandBars
collection. AFAIK, the only time you'll see a new right-click command is
when the item is using a custom form with one or more custom actions.

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
S

Sue Mosher [MVP]

Yes. ActiveExplorer.Selection is the collection of selected items.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
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