Cancelling Outlook.Application.ActiveExplorer.Close event?

N

Nathan

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

Ken Slovak - [MVP - Outlook]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top