473,322 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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 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?
Oct 27 '08 #1
1 7442
http://www.devexpress.com/Products/N...Forms/Editors/
TextEdit, CalcEdit
"yuriks" <yu****@discussions.microsoft.comescribió en el mensaje de
noticias news:49**********************************@microsof t.com...
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?
Oct 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Patrick J. Schouten | last post by:
I am new to ASP/VBScript and I am trying to format a texbox when a user exits it. In Visual Basic you could put the following in the Exit property of the textbox: textbox1 = Format(textbox1,...
2
by: Dalan | last post by:
This should not be an issue, but it is. I'm sure that someone knows what little piece of code is needed too persuade Access 97 to include a currency format for labels (Avery, mailing type). Have...
3
by: Scott Gorman | last post by:
I have created a report in access. I had to add a text box to input a value for previous months balance. I have formatted to display with $ currency, and also with the " , " for thousand separator....
2
by: Juan | last post by:
I get a number from db and display it in a textbox control, how can i format the value as currency? thanks, Juan.
2
by: Andy Eshtry | last post by:
Dear Friends I need to show the price which is of SQL datatype "int" in ASP.net textbox and I need to show the price like this 1000,000,000. I use .net framework 1.0 not 1.1. Is there an...
2
by: sck10 | last post by:
Hello, I have a SQL Server 2K table with a field set to currency. When I try to insert or update a FormView, I get the following error: Disallowed implicit conversion from data type nvarchar...
4
by: JotaO | last post by:
Hi! Can anyone tell me where can i find a free control (textbox style) that allows me to input numeric/currency data securelly? TIA JotaO
3
by: mracuraintegra | last post by:
I am seriously at my wits' end here with this. I've got a textbox bound to a money column in a database, but it shows up as a decimal value, meaning that $9.25 shows up as 9.250000. ARRRRG. ...
1
by: Jeff Williams | last post by:
I am looking for a Currency control/Number Control which has the following behavior. If you are entering a number such as 123.67 the control behaves like this. 1. The field (control) is right...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.