radix3 wrote:
is their any method which will first close all the activated MDI in the parent form
No - you have to write it yourself - but it will look like this:
foreach (Form f in MdiChildren)
{
f.Close();
}
Then do your existing code, and you are there.