Y
yuriks
Hey,
I'm building a business application that needs input of currency data. I
looked a lot around google and friends for a good custom control to provide
interactive validation and formatting of the value.
What I need would be a WinForms textbox control that:
- Correctly formats the number according to locales
- Supports negative values
- Displays thousands separators correctly
- Supports decimals
- Right-to-left input (similar to a calculator, preferably treating the
first two numbers entered as decimals)
- Displays the currency symbol in the textbox (but doesn't allows editing it)
- Returns the value in a Decimal format, or as a string that can be parsed
using Decimal.Parse
If no such thing exists, could someone provide pointers as what to base an
implementation off, or do I need to implement all the logic (like skipping
over mask-like characters like the thousands separators like in a
MaskedTextBox) manually?
I'm building a business application that needs input of currency data. I
looked a lot around google and friends for a good custom control to provide
interactive validation and formatting of the value.
What I need would be a WinForms textbox control that:
- Correctly formats the number according to locales
- Supports negative values
- Displays thousands separators correctly
- Supports decimals
- Right-to-left input (similar to a calculator, preferably treating the
first two numbers entered as decimals)
- Displays the currency symbol in the textbox (but doesn't allows editing it)
- Returns the value in a Decimal format, or as a string that can be parsed
using Decimal.Parse
If no such thing exists, could someone provide pointers as what to base an
implementation off, or do I need to implement all the logic (like skipping
over mask-like characters like the thousands separators like in a
MaskedTextBox) manually?