I have an MDI container form which uses "TabbedGroupedMDIManager".
After adding several MDI child forms, I''m trying to close all child forms (By iterating the MDIChildern collection of the MDI parent form). However, some of the MDI child forms, remains opened?!
Attached to this message is a sample which simulates the problem.
Can you please alter this sample, so "CloseAll" button will close all MDI child forms?!
What am I doing wrong?
In the sample, while iterating the MDI child forms to close, if I''m not checking the type of the child form to close, the sample crashes?!
ADAdministrator Syncfusion Team February 8, 2005 10:10 AM
When using a TabbedMdiManager, you should iterate over TabbedMdiManager.Children instead of Form.Children. The TabbedMdiManager adds some additional Forms to Form.Children, and if you remove them it will stop working correctly. I have modified your sample to demonstrate this.