473,395 Members | 1,393 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,395 software developers and data experts.

TextBox and money

How can I ask for money in a TextBox? Can I give a format to the TextBox to
accept only numbers, the colon (,) and the point of the decimals?

Thank you very much
Nov 16 '05 #1
1 1973
override OnKeypress and set e.Handled to true if char is not a number.

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk
"Pablo" <pa***@nospam.es> schrieb im Newsbeitrag
news:OH**************@TK2MSFTNGP15.phx.gbl...
How can I ask for money in a TextBox? Can I give a format to the TextBox to accept only numbers, the colon (,) and the point of the decimals?

Thank you very much

Nov 16 '05 #2

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

Similar topics

2
by: Alex Shirley | last post by:
Hi Sorry this is (a sort of) repost. I am trying to trim all text boxes on my web form. I've got no problem with the trim function, I have a problem with casting. I am told that if I want to...
2
by: Devinim ÞÖLEN | last post by:
Hi; I try to fetch data and show in the textbox as follows; .. .. .. .. <asp:XmlDataSource Id="m_ChXmlDataSource" runat="server"...
3
by: Darin | last post by:
Is there a way to, at runtime, change a textbox to be a datetimepicker? I have a form that I allow the user to specify what field types the input boxes are. They can be regular text, integer,...
1
by: Mike | last post by:
Hi All; I have created a MSDE SQL table with a column set to money, format is standard with 2 decimal places. Into the field I put 12345.67. When you view the data it shows 12,345.67. When I...
7
by: nbohana | last post by:
I have a textbox that displays money, I cannot find out how to format it so it displayes like '$123.00' what i get now is '123.00'. Can someone point me in the right direction? Thanks in...
3
by: Joe | last post by:
Hi, I am storing a field in SQL Server with a datatype of money. When I pull that field back into my VB.NET client program, I put it into a typed dataset with a field type of System.Decimal. ...
3
progdoctor
by: progdoctor | last post by:
Friends.. i have a problem.. How to make an input textbox work as desktop application textbox (money format case)? For example: when i entry 99200 in the inputbox and then press enter/tab key,...
4
by: MissElegant | last post by:
Hi all, I have tried to do a test to a lesson which was in the internet, but it doesn't work? ANYBody here to help please?? The problem that what I enter in the textbox should be sent to the...
1
by: JoeP | last post by:
Hi All, How can you manage to have money with a dollar sign in a masked textbox? or a regular textbox. I tried enter this one in the mask propert as: $999,999.99 but it does not work for me. ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.