private void BtnHistCambios_Click(object sender, EventArgs e) { this.Hide(); Form f2 = new Historicocambios(); f2.StartPosition = FormStartPosition.Manual; f2.Location = new Point(this.Location.X + (this.Width - f2.Width) / 2, this.Location.Y + (this.Height - f2.Height) / 2); f2.Show(this); }
private void Listabusquedanotarias_SelectedIndexChanged(object sender, EventArgs e) { try { Historicocambios pantallaprincipal = Owner as Historicocambios; pantallaprincipal.nombrenotariafiltro.Text = listabusquedanotarias.SelectedItems[0].SubItems[0].Text; this.Close(); } catch (System.ArgumentOutOfRangeException) { MessageBox.Show("No has seleccionado ninguna Notaría", "Advertencia"); this.Close(); } }