private void txtHasta_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (aFieldType == 0)
     {
         e.Handled = GPAddIn.ValidarCaracter("[N] ';:[]!@#$%^&*()-_=+ABCDEFGHIJKLMNOPQRSTUVWXYZ", e.KeyChar, txtHasta.Text.ToString(), 0);
     }
     else
     {
         e.Handled = GPAddIn.ValidarCaracter("[A] ,'[]", e.KeyChar, txtHasta.Text.ToString(), 0);
     }
 }
 private void cboOpcion_KeyPress(object sender, KeyPressEventArgs e)
 {
     try { e.Handled = GPAddIn.ValidarCaracter(cboOpcion.Tag.ToString(), e.KeyChar, cboOpcion.Text.ToString(), 0); } catch { }
 }