David R.
Posts: 55
Joined: 2010-07-22
|
Hi,
Is there a way to raise an event when the the last IE window is closed? |
|
Sergey Grischenko
Add-in Express team
Posts: 7233
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
}
} |
|