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)?
You should use the SpinEdit
control and set the max and min properties.