4
Reply

Close Parent Form & open child form

Charith Liyanagamage

Charith Liyanagamage

Nov 6 2008 10:44 AM
16.8k
Hi friends...! My question is.... I have 2 forms.I want to close first/main/Parent form when I open 2nd form using btn_click event. I went through several forums.But couldnt get a idea. I used this form1's btn_click event. Form2 f2=new Form2(); f2.Show(); this.Close(); but this will close whole application. I wanna close first/Parent form and open child form after the btn_click. ::::I'm using VS 2008 and C#:::: Thanks..... Charith

Answers (4)