Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / May 2006

Tip: Looking for answers? Try searching our database.

Inspector Close events not firing..

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sanjay - 22 May 2006 17:45 GMT
Hello --
  I have noticed that the Inspector_Close event does not fire if
Outlook is configured to "Close original message on reply or forward".
 I am using VSTO with Outlook 2k3.  With the above setting set in
Tools >> Options >> Email Options.  When we hit reply, a new inspector
event is fired but the close event of the inspector of the original
message is not fired.  All those closes are then fired when you quit
the application.  I was under the impression that Outlook would simply
reuse the inspector but it seems it is creating a new inspector for the
response and then closes the inspector for the original message without
firing the inspector_close event.
 I have cleanup code in this event.
Ken Slovak - [MVP - Outlook] - 22 May 2006 18:18 GMT
The original Inspector is not really closed, it's hidden. So the Close event
isn't firing until Outlook itself is being closed. If your cleanup code
properly handles Inspector.Close it shouldn't matter in terms of releasing
your Outlook objects. You can always trap MailItem.Close, which will fire in
your case and if needed you can force the Inspector to close from the
MailItem.Close event handler.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> Hello --
>   I have noticed that the Inspector_Close event does not fire if
[quoted text clipped - 8 lines]
> firing the inspector_close event.
>  I have cleanup code in this event.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.