From: Brett on
We have a page that we prefer people click a Cancel button to cancel the
process. However, some users just shut down the browser.

Is there a way to trap a browser shut down event and run the Cancel button
code instead?

Thanks
From: Larry Serflaten on

"Brett" <Brett(a)discussions.microsoft.com> wrote

> We have a page that we prefer people click a Cancel button to cancel the
> process. However, some users just shut down the browser.
>
> Is there a way to trap a browser shut down event and run the Cancel button
> code instead?


VB doesn't typically run in a browser. How are you responding to the
Cancel button? Is that script or actual VB code?

Have you seen this:
http://msdn.microsoft.com/en-us/library/ms536973(VS.85).aspx

LFS


From: Brett on
Sorry, my bad.
Meant to post in .Net forum. I'm moving it, and will check there moving
forward.

Thanks

"Larry Serflaten" wrote:

>
> "Brett" <Brett(a)discussions.microsoft.com> wrote
>
> > We have a page that we prefer people click a Cancel button to cancel the
> > process. However, some users just shut down the browser.
> >
> > Is there a way to trap a browser shut down event and run the Cancel button
> > code instead?
>
>
> VB doesn't typically run in a browser. How are you responding to the
> Cancel button? Is that script or actual VB code?
>
> Have you seen this:
> http://msdn.microsoft.com/en-us/library/ms536973(VS.85).aspx
>
> LFS
>
>
>