private void Container_Load(object sender, EventArgs e) { foreach (Form childForm in this.MdiChildren) { childForm.Close(); } FrmMusteriEkle musteriEkle = new FrmMusteriEkle(); musteriEkle.MdiParent = this; musteriEkle.WindowState = FormWindowState.Maximized; musteriEkle.Show(); }
private void müşterıEkleToolStripMenuItem_Click(object sender, EventArgs e) { foreach (Form childForm in this.MdiChildren) { childForm.Close(); } FrmMusteriEkle musteriEkle = new FrmMusteriEkle(); musteriEkle.MdiParent = this; musteriEkle.WindowState = FormWindowState.Maximized; musteriEkle.Show(); }