コード例 #1
0
 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();
     }
 }
コード例 #2
0
 private void CVentas_Load(object sender, EventArgs e)
 {
     Consultarbutton.PerformClick();
 }
コード例 #3
0
 private void cOrdenAnalisis_Load(object sender, EventArgs e)
 {
     Consultarbutton.PerformClick();
 }
コード例 #4
0
 private void CriteriotextBox_TextChanged(object sender, EventArgs e)
 {
     Consultarbutton.PerformClick();
 }
コード例 #5
0
 private void cEntradaResultados_Load(object sender, EventArgs e)
 {
     Consultarbutton.PerformClick();
 }