If (e.KeyChar < Chr(48) Or e.KeyChar > (57)) And e.KeyChar <> Chr(8) Then e.Handled = True End If code example
Example: If (e.KeyChar < Chr(48) Or e.KeyChar > (57)) And e.KeyChar <> Chr(8) Then e.Handled = True End If
If (e.KeyChar < Chr(48) Or e.KeyChar > (57)) And e.KeyChar <> Chr(8) Then
e.Handled = True
End If