private void Form1_Load(object sender, EventArgs e) { this.Size = new Size(Screen.PrimaryScreen.WorkingArea.Size.Width, Screen.PrimaryScreen.WorkingArea.Size.Height); this.Location = new Point(0, 0); //sobra si tienes la posición en el diseño Form fmr_logo = new logo(); fmr_logo.MdiParent = this; fmr_logo.StartPosition = FormStartPosition.CenterScreen; fmr_logo.Enabled = false; fmr_logo.Show(); MdiClient ctlMDI; foreach (Control ctl in this.Controls) { try { ctlMDI = (MdiClient)ctl; ctlMDI.BackColor = this.BackColor; } catch (InvalidCastException exc) { } } }
private void Form1_Load(object sender, EventArgs e) { pnl_Menu inicioSes = new pnl_Menu(); inicioSes.FormClosed += new FormClosedEventHandler(form2_FormClosed); inicioSes.ShowDialog(); inicioSes.TopMost = true; inicioSes.Activate(); this.Size = new Size(Screen.PrimaryScreen.WorkingArea.Size.Width, Screen.PrimaryScreen.WorkingArea.Size.Height); this.Location = new Point(0, 0); //sobra si tienes la posición en el diseño Form fmr_logo = new logo(); fmr_logo.MdiParent = this; fmr_logo.StartPosition = FormStartPosition.CenterScreen; fmr_logo.Enabled = false; fmr_logo.Show(); MdiClient ctlMDI; foreach (Control ctl in this.Controls) { try { ctlMDI = (MdiClient)ctl; ctlMDI.BackColor = this.BackColor; } catch (InvalidCastException exc) { } } }