Inspector_Close vs MailItem_Close?

B

Brian McCullough

Hello,

I have an Inspector wrapper class in which I am handling the events for the
Inspector and MailItem objects.

Is it "better" to perform cleanup operations, such as removing buttons
and/or removing the Inspector wrapper class from the collection, in the
Inspector_Close or MailItem_Close event? Are there situations where one may
be called but not the other? Is either guarunteed to run (no matter how the
Inspector is closed)?

TIA!
 
K

Ken Slovak - [MVP - Outlook]

I handle both. Depending on whether there's a send or the user closes the
item and whether or not WordMail is involved you do get cases where one or
the other might fire. Using the Next and Previous buttons is another case
where one will fire and not the other.
 
Top