void ShowNewForm (object sender, EventArgs e) { ChildForm child = new ChildForm (); child.MdiParent = this; child.Text = "Window " + childFormNumber++; child.Show (); }