4
Answers

Closing Windows Forms

Ask a question
Abhi Joz

Abhi Joz

15y
3.7k
1
Hi Experts... I have an issue...im confident u ppl can resolve this.. ISSUE: i have an application in which i hvnt used MDI Forms. I have around 30 buttons on the main form...on each click it opens another windows forms(so i have 30 forms now)...my prob is everytime i click multiple buttons their respective forms open...this makes the application slow n also my task-bar gets filled...When a form is opened i tried closing all the other forms by creating their objects(and using object.close() )...even this makes the performance standstill...i need solution where i can close the existing opened forms when i click any button to open a specific form...plzz help. Thanks in advance.

Answers (4)