Ejemplo n.º 1
0
        private void stacksAndQueuePage2ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (ActiveMdiChild != null)
            {
                ActiveMdiChild.Close();
            }

            // Create a new form to represent the child form.
            StackAndQueuesPage2 child = new StackAndQueuesPage2();

            // 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 2";

            child.Text = formText;

            // Make the new form a child form.
            child.MdiParent = this;
            // Display the child form.
            child.Show();
        }
Ejemplo n.º 2
0
        private void button15_Click(object sender, EventArgs e)
        {
            Form f = new StackAndQueuesPage2();

            f.Show();
        }