473,546 Members | 2,205 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

textbox numeric with 2 decimals

How obtain a textbox numeric with 2 decimals and formated. Example:
234,898.90. The idea is not permit introduced twice point decimals and show
it professionaly.

Thanks
May 11 '06 #1
7 9005
Not sure what you are asking, but maybe the .ToString("N") format is
what you're looking for?

May 11 '06 #2
Whoops, I think for currency, ie 2 decimal places, that should be
..ToString("N2" )

May 11 '06 #3
Well zacks. Sorry for my bad english. I need a textbox type currency but
without the simbol of currency. Very professional with mask and all. The
numericupdown is a basic control. I need more professional control same a
textbox numeric the Visual FoxPro.
Do you understand me?

Thanks for your comments
<za***@construc tion-imaging.com> escribió en el mensaje
news:11******** **************@ u72g2000cwu.goo glegroups.com.. .
Not sure what you are asking, but maybe the .ToString("N") format is
what you're looking for?

May 11 '06 #4
Sounds like MaskedTextBox is what you're looking for

/claes

"Jose" <jo********@uni ca.com> wrote in message
news:eL******** ******@TK2MSFTN GP02.phx.gbl...
How obtain a textbox numeric with 2 decimals and formated. Example:
234,898.90. The idea is not permit introduced twice point decimals and
show it professionaly.

Thanks

May 11 '06 #5
I only mention currency because it needs the two decimal places. But
the N2 format does not put any type of currency symbol in the string.
All it does is insert the decimal point and the commas.

May 11 '06 #6
Use vb.net 2003 the maskeditbox don't work in this version.

"Claes Bergefall" <lo*****@nospam .nospam> escribió en el mensaje
news:ef******** ******@TK2MSFTN GP03.phx.gbl...
Sounds like MaskedTextBox is what you're looking for

/claes

"Jose" <jo********@uni ca.com> wrote in message
news:eL******** ******@TK2MSFTN GP02.phx.gbl...
How obtain a textbox numeric with 2 decimals and formated. Example:
234,898.90. The idea is not permit introduced twice point decimals and
show it professionaly.

Thanks


May 11 '06 #7
"Jose" <jo********@uni ca.com> schrieb:
Use vb.net 2003 the maskeditbox don't work in this version.


<URL:http://www.codeproject .com/cs/miscctrl/maskedcsedit.as p>
<URL:http://www.codeproject .com/vb/net/maskedbox_contr ol.asp>
<URL:http://www.codeproject .com/vb/net/validtext3.asp>
<URL:http://www.codeproject .com/vb/net/cpflexmaskeditb ox.asp>
<URL:http://www.codeproject .com/useritems/ValidText.asp>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
May 11 '06 #8

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

Similar topics

2
13684
by: anonieko | last post by:
This applies to javascript dynamic textbox onkey > > > Newsgroups: comp.lang.javascript From: Lasse Reichstein Nielsen <l...@hotpop.com> - Find messages by this author Date: Fri, 15 Jul 2005 18:39:24 +0200 Local: Fri,Jul 15 2005 12:39 pm Subject: Re: Summer 2005 browsers' test set ?
5
2925
by: David Garamond | last post by:
In Interbase and Firebird, NUMERIC is implemented as 64-bit integer. This limits the range to NUMERIC(18, *) but for many uses that's adequate. And moreover it's fast and efficient. Is there a way in PostgreSQL to do something similar, i.e. I want to: - use 64-bit ints, not string bits or arbitrary precision which is dubbed as "much...
4
1397
by: smith Smith | last post by:
I have attached java script code for the text box in the bind event of a grid for a template column. Even though I can attach the java script to the text box but could not achieve the full java script implementation. I want to add java script validation so that user can enter only the numeric values in this field. How to do that ? smith
11
4520
by: Keith | last post by:
I apologize for those of you who think I'm posting on the same topic. It is not that I don't appreciate all of your comments - and I'm definitely reading them all - but I think I have a differing opinion of how I want to handle the 'user experience' in the application I'm creating. While I know I could allow the user to enter in number and alpha...
20
2023
by: Keith | last post by:
The following control code - only allows for the entry of numbers, backspace, and decimals (or periods). The problem lies in the last statement - it allows multiple decimals or periods. How would I modify the code to only allow 1 decimal? In other words - once a user entered one period - no others could be entered? Private Overloads Sub...
5
4079
by: ScareCrow | last post by:
How do I go about limiting a textbox to accepting numeric key input from the keyboard in vb.net? --------------= Posted using GrabIt =---------------- ------= Binary Usenet downloading made easy =--------- -= Get GrabIt for free from http://www.shemes.com/ =-
3
3271
by: NH | last post by:
How can I check the value of a textbox has no more than 2 decimal places? I already check that the value is numeric, but how do I check that it is not 0.223 or .022 etc. I only want to allow up to 2 decimal places...
7
6820
by: nussu | last post by:
Hi, Plz provide me javascript : javascript for a textbox to accept the values in decimals and within range i need to enter a value in textbox like 1.03 and it should be <3 (lessthan 3). Plz help me. Rgds,
1
7471
by: =?Utf-8?B?eXVyaWtz?= | last post by:
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...
0
7435
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7461
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6030
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5361
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3492
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3472
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1922
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1046
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
747
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.