View Single Post
  #2  
Old March 28th 07, 08:51 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Explorer' Close event not fired

It sounds like you're not subscribing to the correct Explorer's events and
that you're not using a wrapper collection for open Explorers. If you were
you wouldn't get Close on the first Explorer after opening a second
Explorer.

Are you getting ActiveExplorer and subscribing to that in the Startup event
handler in your VSTO addin?

FWIW I do get all Explorer events including on the first Explorer and
separate events in my Explorer wrappers for each Explorer event I subscribe
to including Close().

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


"j" wrote in message
oups.com...
Hi All,

I have Outtlook Addin (C# 2.0, VSTO 2005, Outlook 2003),

i subscribed to close event:

explorerEvents.Close += new
Outlook.ExplorerEvents_10_CloseEventHandler(OnExpl orerClose);

but i never get there, why???

Only if i open another explorer (right click on folder-- Open in new
folder), and close it , then i get the close event fired, but when i
have only one explorer (main explorer) it's seem to be never fired.



P.S. I also susbscribe to FolderSwitch and SelectionChange explorer
events , they works fine.

Any suggestions??


Ads