finding if X button used to close browser

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible to capture if a user uses the X button to close a browser.

I have a Web project in VB.NET & I would like to do some clean up. In old
VB there was a query unload event that could tell how user closes out.
Anything in .net

Thanks for any help.
 
Sega,

What is the other way the WebBrowser can be closed. Can you not mark that
with a boolean or something. Maybe pragmatic but in my opinion very easy to
do.

Cor
 
Use the SessionEnd event handler. This doesn't work immediately, as there is
no way to know when the client has gone elsewhere. That is why Sessions time
out. When it does, you can perform your cleanup.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.
 
Back
Top