private void txtBusqueda_KeyPress(object sender, KeyPressEventArgs e) { try { if (e.KeyChar == '\r') { e.Handled = true; BtnBuscar.PerformClick(); } } catch (Exception) { throw; } }
private void txtBusqueda_KeyPress(object sender, KeyPressEventArgs e) { try { if (e.KeyChar == '\r') { e.Handled = true; BtnBuscar.PerformClick(); } } catch (Exception) { MessageBox.Show("No error al consutar datos"); throw; } }