Click here to Skip to main content
15,886,640 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to close more than one forms when first form is open.
Posted
Comments
dimpledevani 17-Jul-12 2:38am    
when you ope you first form,then in the load event you can write form2.close() and same for you other forms
Unareshraju 17-Jul-12 2:41am    
i didn't reach your expectation could to explain when you want to close the form. we can possible to create more form at dynamically.....please explain u r question.
Vani Kulkarni 17-Jul-12 2:44am    
This is not well composed question. Which form are you talking about? Is it web form or windows? Also please elaborate your requirement.

1 solution

If you want to close specific forms all you need is access to their instances and then close the instances with a .close();
 
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