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 !!!
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Niradhip ChakrabortyRank #428 · 5.8K pointsPosted Jul 24, 2009, 3:36 PM EDT
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();
bharat8 pointsPosted Jul 25, 2009, 2:01 AM EDT
Niradhip ChakrabortyRank #428 · 5.8K pointsPosted Jul 27, 2009, 5:01 AM EDT
http://www.bytescout.com/fill_and_save_form_as_pdf_document_form_filler.html