Trapping events are best performed using the TextChanged event of the textbox control. If you wish to trap the value you could at each instance of the event, check for the value of the control and if not between the range of values you mention, then to prompt an error.
Dig Deeper on Win Development Resources
Related Q&A from Samuel Colak
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.