Click here to Skip to main content
16,010,114 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how set min/max value to textbox using keypress/text changed event

or similar textbox event means user should not enter value in textbox which is not available in given range.
Posted
Updated 14-Jun-12 4:58am
v2
Comments
Richard MacCutchan 14-Jun-12 11:22am    
Add an event handler that checks the text every time it changes.

1 solution

If by Max and Min you are implying that the user should enter a numeric value, then I wouldn't use a TextBox, I would use a NumericUpDown instead.
 
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