Click here to Skip to main content
15,914,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi i am Shribab, i am developing one windows forms app. In that i need to close the background form permanently before opening the child form.Same in reverse also.

I have tried with this.Hide(); it is hiding the window not closing.
Posted

try

this.close();

or

this.dispose();
 
Share this answer
 
Comments
Sandeep Mewara 25-Apr-12 2:47am    
Sure it would work?
Similar question was asked couple of days back.

Here: How to close parent form in child form[^]

You can just hide ParentForm as you cannot close it. ParentForm is parent form and it cannot be closed unless child form is closed.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900