Exemplo n.º 1
0
 private void tb_contract_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (!ModifierKeys.HasFlag(Keys.Control))
     {
         e.Handled = !TextValidator.isNumber(e.KeyChar.ToString());
     }
 }