Problem with form closing
I have created form1 and from this form i'm going to form2 on button click. While moving to form2 i'm hiding form1, and while closing form2,what is the way of closing form1 also.
please help me !!!
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Niradhip ChakrabortyPosted Jul 27, 2009, 9:01 AM
http://www.bytescout.com/fill_and_save_form_as_pdf_document_form_filler.html
bharatPosted Jul 25, 2009, 6:01 AM
Niradhip ChakrabortyPosted Jul 24, 2009, 7:36 PM
You are hiding the first form and opening the second form. Once you close the second form it will not show the first form Untill you call it again.
Now if you want to close entire application which is running though you close the second form then add the following code in form2 buttonClick.
System.Windows.Forms.Application.Exit();