Allen Razdow

My VSTO Outlook add-in registers a handler for the "Open" event of certain email messages. This handler has no parameters, so when executed, how do I recover a handle to the MailItem object that was opened

Many Outlook events send no arguments to their handlers...am I missing an obvious way of obtaining the object that is the source of the event being handled

-Allen, new to VSTO




Re: Visual Studio Tools for Office MailItem.Open event handler..which Item??

Mike Morton - MSFT

Allen, did you get a resolution to this issue

Mike





Re: Visual Studio Tools for Office MailItem.Open event handler..which Item??

Allen Razdow

Someone in support pointed me to a 3rd pary product Add-in Express. My add-in is now pretty far along based on that technology, and it wraps the events and passes the relevant objects to the handlers.

BTW I just posted a question to this VSTO thread about accessing a MailItem's "Internet header" which MailItem doesn't expose. Nor can I seem to find the assemblies I need to use the MailItem.MAPIOBJECT property. Any advice appreciated.