The first operator ifbasically says that if it is a number, let it act as usual - otherwise go to the second operator if.
if , backspace, - .
e.Handled = true; , , . , .
:
bool isDigit = e.KeyChar >= '0' && e.KeyChar <= '9';
bool isBackspace = e.KeyChar == '\b';
if (!isDigit && !isBackspace)
{
e.Handled = true;
}