Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Add-ins for Outlook (http://www.outlookbanter.com/add-ins-outlook/)
-   -   Cancelling Outlook.Application.ActiveExplorer.Close event? (http://www.outlookbanter.com/add-ins-outlook/26478-cancelling-outlook-application-activeexplorer-close.html)

Nathan September 8th 06 07:48 PM

Cancelling Outlook.Application.ActiveExplorer.Close event?
 
Hello,

I have written an Outlook Add-in in C# for Outlook 2003.
I have added a delegate/event handler for the
Outlook.Application.ActiveExplorer.Close event.
With in the event procedure, I am doing a check for a flag, if the flag is
set to true, I want to cancel the closing event and popup a message box to
the user and leave the outlook window active.

How do I do this?

Thanks in advance for any suggestions.


Ken Slovak - [MVP - Outlook] September 8th 06 08:14 PM

Cancelling Outlook.Application.ActiveExplorer.Close event?
 
The Explorer.Close event cannot be canceled. If you get that event and open
a new Explorer that might work but I'm sure it would tick off users trying
to close Outlook. I'd uninstall an application that did that to me.

--
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


"Nathan" wrote in message
...
Hello,

I have written an Outlook Add-in in C# for Outlook 2003.
I have added a delegate/event handler for the
Outlook.Application.ActiveExplorer.Close event.
With in the event procedure, I am doing a check for a flag, if the flag is
set to true, I want to cancel the closing event and popup a message box
to
the user and leave the outlook window active.

How do I do this?

Thanks in advance for any suggestions.




All times are GMT +1. The time now is 03:01 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com