Last active
July 6, 2017 14:54
-
-
Save jofese/6b90cead0515c53aabd5a6b44f7b93b1 to your computer and use it in GitHub Desktop.
Validar Textfield numeros decimales C#
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private void txtNumero_KeyPress(object sender, KeyPressEventArgs e) | |
| { | |
| if (e.KeyChar != (char)44 && e.KeyChar != (char)46 && !Char.IsDigit(e.KeyChar) && e.KeyChar != (char)8 && e.KeyChar != (char)47) | |
| { | |
| e.Handled = true; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment