private void button2_Click(object sender, EventArgs e) { fmConsultaPacientes d = new fmConsultaPacientes(ConexionBD); if (d.ShowDialog() == System.Windows.Forms.DialogResult.OK) { tbIDpaciente.Text = d.RecuperarCodigo(); } tbIDpaciente.Focus(); }
private void pacientesToolStripMenuItem1_Click(object sender, EventArgs e) { fmConsultaPacientes cP = new fmConsultaPacientes(ConexionBD); cP.Show(); }