473,396 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

finding if X button used to close browser

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.
Apr 4 '06 #1
2 1108
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

"Sega" <Se**@discussions.microsoft.com> schreef in bericht
news:73**********************************@microsof t.com...
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.

Apr 4 '06 #2
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.

"Sega" <Se**@discussions.microsoft.com> wrote in message
news:73**********************************@microsof t.com...
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.

Apr 4 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: PK | last post by:
Hello, I am looking for help on the following. I'm trying to create a custom browser toolbar button that will do a few things. One that I'm trying to do at the moment is just simply return the...
6
by: andrewkooi | last post by:
Greetings, I do not know whether such code exist but no harm asking: Is it possible for me to make visible a close button if the active window is a popup window or a new window (other than the...
2
by: brett | last post by:
A Mac doesn't see the upload button that a windows machine does. What is the equivalent HTML for a Mac? Thanks, Brett
25
by: KK | last post by:
Hi, I am using history.go(-1) for implementing the back button functionality. Its working fine but with this exception. 1. The page which is having back button has some hyperlinks on it. ...
4
by: Ron Lautmann | last post by:
I want to close a browser window so I created a Close button that does this: private void Button1_Click(object sender, System.EventArgs e) {...
2
by: wisdo | last post by:
Hi, I found many site have the spam window that only have close button. but i can't create one with window.open(...) I set the resizable=no, but the minimize, maximize, close button are all...
1
by: smilyswapna10 | last post by:
hi, I am working on the IE7 browser. when click on the close(X) button i need a conformation same as i open the multiple tabs in a single browser and while i closing the tabs also i need a...
1
by: sreedhardasi | last post by:
Hi, I would like to call a javascript function when user clicks on browser's close button. Here is the scenario. 1. User clicks browser close button. 2. User will be displayed a popup or a...
1
by: nanajee | last post by:
Hi, I want call a function when the user trying to close a browser by clicking on close button. for the above question i used onbeforeunload and onunload functions,these two functions working when...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.