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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top