In the TextBox's Change and KeyPress events, see if the value looks like a valid number. If not, display an error message or otherwise signal the error. See the code for details.