Click here to Skip to main content
15,845,785 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Help, I have searched many sites and found very few information on these in Visual Basic.
Posted
Updated 5-May-11 14:20pm
v2

1 solution

If your doing the validation when the user tries to exit the control, I guess the simplest way is to use Validating[^] event. In that event you could use for example regex to check the input.

NumericUpDown automatically accepts only numbers and the MaskedTextBox has the Mask[^] property where you can define a proper mask.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900