bharat

bharat

  • NA
  • 12
  • 0

Problem with form closing

Jul 24 2009 1:59 PM
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 !!!

Answers (3)

0
bharat

bharat

  • 0
  • 12
  • 0
Jul 25 2009 6:01 AM
thank you... also is it possible to export entire form as a pdf or word document ??
0
Niradhip Chakraborty

Niradhip Chakraborty

  • 0
  • 4.6k
  • 820.5k
Jul 24 2009 7:36 PM


What is the problem you are facing?

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();