Pass the active form object to the below method it will close all the other form except the active form.
public void DisposeAllButThis(Form form)
{
foreach (Form frm in this.MdiChildren)
{
if (frm.GetType() == form.GetType()
&& frm != form)
{
frm.Close();
}
}
}
Hope this helps