Home All Groups Group Topic Archive Search About

How to close the parent and all child forms together at once when click on parent window's close but

Author
24 Sep 2006 11:16 PM
VBLearner
How to close the parent and all child forms together at once when click
on parent window's close button X?

Author
25 Sep 2006 3:18 AM
Cor Ligthert [MVP]
Hi,

Environment.exit(0)

I hope this helps,

Cor

Show quoteHide quote
"VBLearner" <amanda77***@gmail.com> schreef in bericht
news:1159139816.436488.84790@h48g2000cwc.googlegroups.com...
> How to close the parent and all child forms together at once when click
> on parent window's close button X?
>
Author
25 Sep 2006 4:57 AM
Muhammad Ahsin Saleem
if above statement does not work then try this It will surely work
  Application.Exit()

Cor Ligthert [MVP] wrote:
Show quoteHide quote
> Hi,
>
> Environment.exit(0)
>
> I hope this helps,
>
> Cor
>
> "VBLearner" <amanda77***@gmail.com> schreef in bericht
> news:1159139816.436488.84790@h48g2000cwc.googlegroups.com...
> > How to close the parent and all child forms together at once when click
> > on parent window's close button X?
> >