How to capture events if they close outlook or if they switch forms

Add-in Express™ Support Service
That's what is more important than anything else

How to capture events if they close outlook or if they switch forms
 
Charles Steinhardt




Posts: 4
Joined: 2006-09-03
My ADX subpane / form needs to capture the events prior to switching oms or closing outlook so I can save some data. How do I do this?
Posted 10 Sep, 2006 01:12:56 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Charles.

You can capture Outlook events using the ADXOutlookAppEvents component.
Just right click on the addinmodule designer and choose the 'Add events' options in the context menu.
You can use the ExplorerFolderSwitch or ExplorerBeforeFolderSwitch events to save your data. Also you can use the AddinBeginShutdown event of the addinmodule to run your code before Outlook closes.
Posted 11 Sep, 2006 07:29:26 Top
Charles Steinhardt




Posts: 4
Joined: 2006-09-03
Great - thanks
Posted 11 Sep, 2006 07:49:59 Top