I’ve got a numbers-only TextEdit box with MaxLength set to 2, allowing the user to enter 0-99. Can I restrict this to a smaller range, say 0-30, without catching the TextChanged event, validating the input and showing a messsage (or similar method)?
I’ve got a numbers-only TextEdit box with MaxLength set to 2, allowing the user
Share
You could set the regexp mask to
\d|[0-2]\d|30.