private void menuFileClose_Click(object sender, EventArgs e) { MDIChild mc = this.ActiveMdiChild as MDIChild; if (mc != null) mc.Close(); }