Home All Groups Group Topic Archive Search About

textbox numeric with 2 decimals

Author
11 May 2006 12:18 PM
Jose
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

Author
11 May 2006 12:42 PM
zacks
Not sure what you are asking, but maybe the .ToString("N") format is
what you're looking for?
Author
11 May 2006 1:10 PM
Jose
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***@construction-imaging.com> escribió en el mensaje
Show quoteHide quote
news:1147351342.473731.290400@u72g2000cwu.googlegroups.com...
> Not sure what you are asking, but maybe the .ToString("N") format is
> what you're looking for?
>
Author
11 May 2006 3:24 PM
zacks
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.
Author
11 May 2006 12:42 PM
zacks
Whoops, I think for currency, ie 2 decimal places, that should be
..ToString("N2")
Author
11 May 2006 3:06 PM
Claes Bergefall
Sounds like MaskedTextBox is what you're looking for

    /claes

Show quoteHide quote
"Jose" <josenospam@unica.com> wrote in message
news:eLzEDUPdGHA.4900@TK2MSFTNGP02.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
>
>
Author
11 May 2006 9:10 PM
Jose
Use vb.net 2003 the maskeditbox don't work in this version.

Show quoteHide quote
"Claes Bergefall" <louplou@nospam.nospam> escribió en el mensaje
news:efmaowQdGHA.5048@TK2MSFTNGP03.phx.gbl...
> Sounds like MaskedTextBox is what you're looking for
>
>    /claes
>
> "Jose" <josenospam@unica.com> wrote in message
> news:eLzEDUPdGHA.4900@TK2MSFTNGP02.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
>>
>>
>
>
Author
11 May 2006 10:10 PM
Herfried K. Wagner [MVP]