Forum guidelines
AuthorQuestion
Close Parent form from child form
Posted on: 19 Dec 2012
Hi all
i have a parent form named Loginform after the user enter the right User Name and Password another form opened named Form1,  all i need that when i closed Form1 from the ControlBox (X) the Loginform closed too, How?

Many Thanks.

AuthorReply
Vulpes
  • 0
  • 0
accepted
Re: Close Parent form from child form
Posted on: 19 Dec 2012   Accepted Answer
If Loginform is your start up form, then closing it will close the whole application.

Consequently, rather than closing the Loginfrom explicitly, you  might as well call Application.Exit() to close down the whole application.

Re: Close Parent form from child form
Posted on: 20 Dec 2012  
Many Thanks Vulpes yes i need to close the all forms. i use Applecation.Exit() in the child form by write it in FormClosed Event

SPONSORED BY

Custom Software Development
MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.