>Use
>inputmask = '99'
>for the two digits.
>Then you can use Marks code for in the valid.
>You could also use a spinner and set the SpinnerHighValue and/or KeyboardHighValue to 20.
I don't think that a spinner type class will stop you from entering a larger value from the keyboard, only from the spinner.