A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Cancelling Outlook.Application.ActiveExplorer.Close event?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 8th 06, 06:48 PM posted to microsoft.public.outlook.program_addins
Nathan
external usenet poster
 
Posts: 30
Default 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.

Ads
  #2  
Old September 8th 06, 07:14 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default 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.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to access java application from Outlook? Old_Mortality Add-ins for Outlook 0 May 24th 06 01:55 PM
cancelling a resource newadmin Outlook - General Queries 0 May 23rd 06 03:12 PM
How to write new calendar event from internet application? jhajko via OfficeKB.com Outlook - Calandaring 2 May 9th 06 03:56 PM
New Outlook.Application throws FileNotFoundException Sue Outlook and VBA 10 April 6th 06 06:51 AM
How to remove a meeting from one calendar without cancelling it? Pat@kmg Outlook - Calandaring 0 March 29th 06 04:12 PM


All times are GMT +1. The time now is 03:31 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2024 Outlook Banter.
The comments are property of their posters.