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