|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
textbox numeric with 2 decimalsHow 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 Not sure what you are asking, but maybe the .ToString("N") format is
what you're looking for? 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? > 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. Whoops, I think for currency, ie 2 decimal places, that should be
..ToString("N2") 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 > > 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 >> >> > > "Jose" <josenospam@unica.com> schrieb: <URL:http://www.codeproject.com/cs/miscctrl/maskedcsedit.asp>> Use vb.net 2003 the maskeditbox don't work in this version. <URL:http://www.codeproject.com/vb/net/maskedbox_control.asp> <URL:http://www.codeproject.com/vb/net/validtext3.asp> <URL:http://www.codeproject.com/vb/net/cpflexmaskeditbox.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/> |
|||||||||||||||||||||||