How do I set a max numeric value in a Devexpress TextEdit box?

Alex picture Alex · Jun 20, 2011 · Viewed 10.7k times · Source

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)?

Answer

SLaks picture SLaks · Jun 20, 2011

You should use the SpinEdit control and set the max and min properties.