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
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.
Get Career Advice from Experts