I’m using WinForms RadMaskedEditBox MaskType: Numeric, Mask: c2, whenever I try to type negative number example: -$1.00 I get ($1.00), the minus sign - disappears and I get parenthesis () instead.
Is there a way to get negative currency number in MaskedEditBox?
It seems that on your machine is the default value, this is why you see the negative values with "()". In order to change this setting, you can do it through your local Region settings. In the Negative currency format filed you can choose from the drop-down the appropriate pattern that you would like to use. Below is a picture for your reference:
Another way is to set it programmatically via the CultureInfo class.
This is the result on my end:
I hope this information helps. Do not hesitate to contact us if you have other questions.
Regards,
Nadya
Progress Telerik
Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic. Our thoughts here at Progress are with those affected by the outbreak.