private void stacksAndQueuePage1ToolStripMenuItem_Click(object sender, EventArgs e) { if (ActiveMdiChild != null) { ActiveMdiChild.Close(); } // Create a new form to represent the child form. StacksAndQueuesPage1 child = new StacksAndQueuesPage1(); // Increment the private child count. childFormNumber++; // Set the text of the child form using the count of child forms. String formText = "Stacks and Queue" + "Page 1"; child.Text = formText; // Make the new form a child form. child.MdiParent = this; // Display the child form. child.Show(); }
private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { Form f = new StacksAndQueuesPage1(); f.Show(); }