Event for email message select

S

Saeed

I am writing a plug-in for outlook using VSTO in which I want a toolbar
button to be enabled only when one or more email messages are selected, and
disabled/grayed otherwise. For which I need the event as soon as a message is
clicked, and as soon as a selected message is deselected. Does VSTO expose
such an event.
 
K

Ken Slovak - [MVP - Outlook]

VSTO exposes no Outlook events. The Outlook object model exposes the
Explorer.SelectionChange() event that returns a 1-based Selection
collection. Any items in that collection are selected. Use that on the
ActiveExplorer() object.
 

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