Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1540
UltraNumericEditor MaskInput's MaxValue
posted

Hello,

I have a UltraNumericEditor and I need to define a MaskInput that doesn't limit the number of digits but it Throws an Exception.

private UltraNumericEditor setControlToNumeric(NumericType type)
{
string i = Int32.MaxValue.ToString();
string f =  Int32.MaxValue.ToString();

UltraNumericEditor numericEditor = new UltraNumericEditor();
numericEditor.MinValue = Int64.MinValue;
numericEditor.MaxValue = Int64.MaxValue;
numericEditor.NumericType = type;
numericEditor.PromptChar = ' ';

if (type == NumericType.Decimal)
numericEditor.MaskInput = "{double:" + i + "." + f + "}";
else if (type == NumericType.Integer)
numericEditor.MaskInput = "{LOC}" + i;

return numericEditor;

}

Can you please tell me what I'm doing wrong?

Thank you.

Best regards,

Maria

Parents Reply Children
No Data