void CloseAllToolStripMenuItem_Click (object sender, EventArgs e) { foreach (Form childForm in MdiChildren) childForm.Close (); }