private void arrayPage3ToolStripMenuItem_Click(object sender, EventArgs e) { if (ActiveMdiChild != null) { ActiveMdiChild.Close(); } // Create a new form to represent the child form. ArrayAndStringP3 child = new ArrayAndStringP3(); // Increment the private child count. childFormNumber++; // Set the text of the child form using the count of child forms. String formText = "Array and String " + "Page 3"; child.Text = formText; // Make the new form a child form. child.MdiParent = this; // Display the child form. child.Show(); }
private void button15_Click(object sender, EventArgs e) { ArrayAndStringP3 frm = new ArrayAndStringP3(); frm.Show(); }