Write a handler for KeyDown/KeyPress (not sure which, but one will work) in the text box. Check the value of the key. If not a number, stop processing i.e. .Handled()

Bill F