I want to have a text control that only accepts numbers. (Just integer values like 45 or 366)

What is the best way to do this?

Edit
Report