Looking for a good currency textbox control

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?
 
S

San Pan

Here's an example of doing it using an existing control.



yurik wrote:

Looking for a good currency textbox control
27-Oct-08

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 locale
- Supports negative value
- Displays thousands separators correctl
- Supports decimal
- 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.Pars

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?

Previous Posts In This Thread:

Looking for a good currency textbox control
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 locale
- Supports negative value
- Displays thousands separators correctl
- Supports decimal
- 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.Pars

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?

Re: Looking for a good currency textbox control
http://www.devexpress.com/Products/NET/Controls/WinForms/Editors

TextEdit, CalcEdit


Submitted via EggHeadCafe - Software Developer Portal of Choice
Get Started with SQLite and Visual Studio
http://www.eggheadcafe.com/tutorial...b-b6f46d4f2c6a/get-started-with-sqlite-a.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top