private void estadoCivilToolStripMenuItem_Click(object sender, EventArgs e) { if (Application.OpenForms["EstadoCivil"] != null) { Application.OpenForms["EstadoCivil"].Activate(); } else { EstadoCivil frm = new EstadoCivil(); frm.MdiParent = this; frm.Show(); } }
private void button3_Click(object sender, EventArgs e) { int sel = Convert.ToInt32(comboBox3.SelectedValue); EstadoCivil frm = new EstadoCivil(); frm.ShowDialog(); this.estadoCivilTableAdapter.Fill(this.promowork_dataDataSet.EstadoCivil); comboBox3.SelectedValue = sel; }