private void toolStripMenuItem1_Click(object sender, EventArgs e) { if (!ExistsMdiChildrenlnstance("MainFrm")) { MainFrm maifrm = new MainFrm(); maifrm.MdiParent = this; maifrm.WindowState = FormWindowState.Maximized; maifrm.Dock = DockStyle.Fill; maifrm.Show(); } }
private void MDIFORM_Load(object sender, EventArgs e) { this.WindowState = FormWindowState.Maximized; this.StartPosition = FormStartPosition.CenterScreen; // this.MaximizeBox = false; // this.MinimizeBox = false; MainFrm maifrm = new MainFrm(); maifrm.MdiParent = this; maifrm.WindowState = FormWindowState.Maximized; maifrm.Dock = DockStyle.Fill; maifrm.Show(); }