I have a windows application where, When i click a button on Form1 opens Form2. I have a aone more button on Form2 when i click that it suppose to open Form1.
Form 1 :
Form form2 = new Form2();
form2 .ShowDialog();
Form1.Close();
Form 2 :
Form form1 = new Form1();
form1.ShowDialog();
form2.Close();
The Application ends..Can anyone explain how to achieve rectify this?