Answer the question
In order to leave comments, you need to log in
How to allow only numbers and '+' to be entered in a textBox?
A number is entered in the textBox in the format +79991112233, but if you enter the same number of letters, then there will be no error
Tried like this
if (!Char.IsDigit(e.Text, 0))
{
e.Handled = true;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question