Thank you for writing.
To achieve the desired behaviour you can use RadMaskedEditBox with MaskType
set to Numeric
set to "n2", also in this case you have to handle the KeyPress event in order to achieve the max length requirement:
sender, KeyPressEventArgs e)
.IsDigit(e.KeyChar) && radMaskedEditBox1.Text.Length >= 15 && radMaskedEditBox1.SelectionLength == 0
) >= radMaskedEditBox1.SelectionStart)
Alternatively you can use RadSpinEditor. With it you can easily set maximum value and decimal places:
radSpinEditor1.DecimalPlaces = 2;
radSpinEditor1.Maximum = 9999;
I hope this helps. Should you have any other questions do not hesitate to ask.
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>