private void button_valider_Click(object sender, EventArgs e) { fiche_client ficheclient = new fiche_client(); ficheclient.id = (Int64)comboBox_ref_client.SelectedValue; ficheclient.MaximizeBox = false; ficheclient.MdiParent = this.MdiParent; ficheclient.Show(); }
//public void parametrefenetre(Form maform) //{ // maform.FormBorderStyle = FormBorderStyle.None; // maform.MdiParent = this; // maform.Show(); // maform.Location = new Point(0, 0); // this.Width = maform.Width; // this.Height = maform.Height; // maform.Dock = DockStyle.Fill; //} private void button_valider_Click(object sender, EventArgs e) { fiche_client ficheclient = new fiche_client(); ficheclient.id = (Int64)comboBox_ref_client.SelectedValue; //parametrefenetre(ficheclient); //ficheclient.FormBorderStyle = FormBorderStyle.None; ficheclient.MaximizeBox = false; ficheclient.MdiParent = this.MdiParent; ficheclient.Show(); //ficheclient.Location = new Point(0, 0); //this.Width = ficheclient.Width; //this.Height = ficheclient.Height; //ficheclient.Dock = DockStyle.Fill; }