Example #1
0
        private void ShowNewForm(object sender, EventArgs e)
        {
            FrmObat_List childForm = new FrmObat_List();

            childForm.MdiParent = this;
            childForm.Text      = "Window " + childFormNumber++;
            childForm.Show();
        }
Example #2
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            foreach (Form form in Application.OpenForms)
            {
                if (form.GetType() == typeof(FrmObat_List))
                {
                    form.Activate();
                    return;
                }
            }
            Form newForm = new FrmObat_List();

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