Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void txtTextBox_KeyPress(object sender, KeyPressEventArgs e)
- {
- //ввод только цифр
- if (!(Char.IsDigit(e.KeyChar)))
- {
- if (e.KeyChar != (char)Keys.Back)
- {
- e.Handled = true;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement