Пример #1
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            userOrder order = new userOrder();

            order.MdiParent   = MainForm.ActiveForm;
            order.WindowState = FormWindowState.Maximized;
            order.Show();
        }
        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            userOrder userOrder1 = new userOrder();

            userOrder1.MdiParent   = this;
            userOrder1.WindowState = FormWindowState.Maximized;
            userOrder1.Show();
        }