Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(ch <='я' && ch>='а' || ch>='A' && ch<='Я')
- textBox.Text.Remove(textBox.Text.Lenght-1);
- private void TextBox_PreviewTextInput(object sender, TextCompositionEventArgs e)
- {
- e.Handled = !(Char.IsDigit(e.Text, 0))
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement