private void CriteriotextBox_TextChanged(object sender, System.Windows.Forms.KeyPressEventArgs e) { if ((e.KeyChar >= 48 && e.KeyChar <= 57) || (e.KeyChar >= 97 && e.KeyChar <= 122) || (e.KeyChar >= 65 && e.KeyChar <= 90) || (e.KeyChar == 8) || (e.KeyChar == 13) || (e.KeyChar == 127) || (e.KeyChar == 32)) { e.Handled = false; errorProvider.Clear(); } else { e.Handled = true; errorProvider.SetError(CriteriotextBox, "Este campo no acepta el tipo de caracter que acaba de digitar"); } if (e.KeyChar == 13) { Consultarbutton.Focus(); } }
private void CVentas_Load(object sender, EventArgs e) { Consultarbutton.PerformClick(); }
private void cOrdenAnalisis_Load(object sender, EventArgs e) { Consultarbutton.PerformClick(); }
private void CriteriotextBox_TextChanged(object sender, EventArgs e) { Consultarbutton.PerformClick(); }
private void cEntradaResultados_Load(object sender, EventArgs e) { Consultarbutton.PerformClick(); }