示例#1
0
        private void btnFormDokter_Click(object sender, EventArgs e)
        {
            FormDokter frmDokter = new FormDokter();

            frmDokter.TopLevel = false;
            mainPanel.Controls.Add(frmDokter);
            frmDokter.Show();
        }
示例#2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            Form1 mainForm = new Form1();

            mainForm.CenterToScreen();

            FormDokter frmDokter = new FormDokter();

            frmDokter.TopLevel  = false;
            frmDokter.MdiParent = mainForm;
            mainForm.mainPanel.Controls.Add(frmDokter);
            frmDokter.Show();

            //acaha acaha nehi
        }