user4429978
user4429978

Reputation: 11

C#: Outlook Mailitem Changed

i am developing an Outlook AddIn for Outlook 2010 with VS 2010.

When the user opens some Mails, and he changes the focus from one mailitem to another: Is there any event which can give me the currently displayed/focused mailitem?

Upvotes: 0

Views: 436

Answers (1)

Eugene Astafiev
Eugene Astafiev

Reputation: 49455

It looks like you are interested in the SelectionChange event of the Explorer class. It is fired when the user selects a different or additional Microsoft Outlook item programmatically or by interacting with the user interface.

If you switch between inspectors, you need to handle the Activate event of the Inspector class. It is fired when an inspector becomes the active window, either as a result of user action or through program code.

Upvotes: 2

Related Questions