View Single Post
  #1  
Old May 5th 06, 06:10 PM posted to microsoft.public.outlook.program_addins
Sanjay
external usenet poster
 
Posts: 21
Default Outlook Add-in + Sequence of Events..

I an trying to get a sense of the sequence of events that are fired
while creating and sending a new mail item. I am using Outlook 2003
SP2 + VSTO.

I have an Add-In that has the following events wired up.
Inspector_NewInspector
MailItem_Open
MailItem_Send
MailItem_Close
Inspector_CloseInspector

Here is the scenerio that confuses me. When I create a new mail, add
the recipients, subject, message body and then close the inspector.
Outlook fires the MailItem_Close and then asks if the user would like
to save the changes. Now if you hit cancel here, the inspector remains
open but the inspector_Close event gets triggered.


I have to place the cleanup code somewhere and now I'm not sure where
the correct location would be.

Any help will be appreciated.

Thanks.

Ads