TaskPane VisibleStateChange

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

TaskPane VisibleStateChange
 
Meidan Alon




Posts: 37
Joined: 2008-09-21
Hi,

I have a task pane in a Word add-in.
How can I tell, when handling the VisibleStateChange event of a TaskPane, if the task pane was just closed by the little x in the corner, or whether the all Word window was closed? It fires on both cases.

I can always look at the ActiveWindow property of Word, but it throws an exception when the window was closed.

Thanks.
Posted 12 Nov, 2008 12:37:19 Top
Andrei Smolin


Add-in Express team


Posts: 18827
Joined: 2006-05-11
Hi Meidan,

Try Word events to trace the current context: WindowActivate, WindowDeactivate, DocumentBeforeClose, Quit.


Andrei Smolin
Add-in Express Team Leader


Posted 13 Nov, 2008 13:34:11 Top