public frmMdiParent() { InitializeComponent(); this.frmconnex = new frmLog(); frmconnex.MdiParent = this; frmconnex.Show(); }
private void ShowNewForm(object sender, EventArgs e) { //Form childForm = new Form(); //childForm.MdiParent = this; //childForm.Text = "Fenêtre " + childFormNumber++; //childForm.Show(); //if (this.frmconnex==null) //{ this.frmconnex = new frmLog(); frmconnex.MdiParent = this; frmconnex.Show(); //} //else //{ // this.frmconnex.Activate(); //} }