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
It works fyne for you because you're creating a Editor with NumericType.Double and it must be NumericType.Decimal...
If you do that, it will have problems..
Hello Maria,
I tried this and it always works fine for me so I attached my sample to this post for you. Please review it and feel free to let me know if I misunderstood you or if you have any other questions.