private void btnbuscar_Click(object sender, EventArgs e) { this.Hide(); Form frm = new BuscarNotaria(this); frm.StartPosition = FormStartPosition.Manual; frm.Location = new Point(this.Location.X + (this.Width - frm.Width) / 2, this.Location.Y + (this.Height - frm.Height) / 2); frm.Show(this); }
private void button1_Click(object sender, EventArgs e) { checkNotariaManual.Checked = false; radioAutomatica.Checked = true; this.Hide(); Form frm = new BuscarNotaria(this); frm.StartPosition = FormStartPosition.Manual; frm.Location = new Point(this.Location.X + (this.Width - frm.Width) / 2, this.Location.Y + (this.Height - frm.Height) / 2); frm.Show(this); }