Last IE window closed event.

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

Last IE window closed event.
 
David R.




Posts: 35
Joined: 2010-07-22
Hi,

Is there a way to raise an event when the the last IE window is closed?
Posted 21 Jun, 2017 09:54:13 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi David,

There is not such event in the IE object model. But you can use the 'OnDisconnect' event of iemodule instead.
When the last IE window is being closed, GetModuleCount() returns 1.

E.g.

private void IEModule_OnDisconnect(object sender, EventArgs e)
{
if (GetModuleCount() == 1)
{
// do something here
}
}
Posted 22 Jun, 2017 09:02:21 Top