By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,219 Members | 1,110 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,219 IT Pros & Developers. It's quick & easy.

Catching up closing a form

P: n/a
Hello,

What I want to do is quit simple: if the does clicks on the cross at the
right top of the screen I want to catch this event and check a few things
before closing the window. The only thing is, how can I detect somebody has
clicked on it, and how can I possible prevent the window from closing
without hiding the controlbox?

Does somebody have an idea?

greetz
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
> What I want to do is quit simple: if the does clicks on the cross at the
right top of the screen I want to catch this event and check a few things
before closing the window. The only thing is, how can I detect somebody has clicked on it, and how can I possible prevent the window from closing
without hiding the controlbox?


Check out the Form's QueryUnload event.

Rick - MVP
Jul 17 '05 #2

P: n/a
You did put me on a good road to the answer, its "closing" in vb.net, thx
anyway, by searching in help on queryunload I found it ...

greetz
"Rick Rothstein" <ri************@NOSPAMcomcast.net> schreef in bericht
news:QJ********************@comcast.com...
What I want to do is quit simple: if the does clicks on the cross at the
right top of the screen I want to catch this event and check a few things before closing the window. The only thing is, how can I detect somebody

has
clicked on it, and how can I possible prevent the window from closing
without hiding the controlbox?


Check out the Form's QueryUnload event.

Rick - MVP

Jul 17 '05 #3

P: n/a
For future reference, almost everybody here is using VB6 or lower. While you
may get a stray answer to VB.NET questions here, you should ask them in
newsgroups devoted exclusively to .NET programming. Look for newsgroups with
the word "dotnet" in their name.

For the news.devx.com news server, try these

vb.dotnet.discussion
vb.dotnet.technical

For the microsoft news server, try these newsgroups...

microsoft.public.dotnet.general
microsoft.public.dotnet.languages.vb

There are some others, but these should get you started.

Rick - MVP


"Wortelvisje" <nb*****@hotmail.com> wrote in message
news:10***************@seven.kulnet.kuleuven.ac.be ...
You did put me on a good road to the answer, its "closing" in vb.net, thx
anyway, by searching in help on queryunload I found it ...

greetz
"Rick Rothstein" <ri************@NOSPAMcomcast.net> schreef in bericht
news:QJ********************@comcast.com...
What I want to do is quit simple: if the does clicks on the cross at the right top of the screen I want to catch this event and check a few things before closing the window. The only thing is, how can I detect
somebody has
clicked on it, and how can I possible prevent the window from closing
without hiding the controlbox?


Check out the Form's QueryUnload event.

Rick - MVP


Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.