|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
textbox currencyHello. Please i need un textboxt type currency with 2 decimals. Very
professional. The controls maskeditbox doesn't professional. Thanks you for tour help I'm not sure if this is what you want, but try this:
Dim amount As Decimal = 100.00M TextBox1.Text = amount.ToString("C2") The idea is that the user when press decimal point the cursor goes to de
decimal places and show me formated 999,999,999.99 Help me Show quoteHide quote "Chris Dunaway" <dunaw***@gmail.com> escribió en el mensaje news:1147986512.101428.63700@y43g2000cwc.googlegroups.com... > I'm not sure if this is what you want, but try this: > > Dim amount As Decimal = 100.00M > > TextBox1.Text = amount.ToString("C2") > "Jose" <josenospam@unica.com> wrote in message This is possible but your question (problem) is very hard to understand.news:Oi5iWX1eGHA.3488@TK2MSFTNGP02.phx.gbl... > The idea is that the user when press decimal point the cursor goes to de > decimal places and show me formated 999,999,999.99 Private Sub TextBox1_Leave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.Leave Dim myCurr As Decimal myCurr = CDec(TextBox1.Text) TextBox1.Text = Format(myCurr, "Currency") End Sub
Possible to set/reference a property 'dynamically'?
Checked Listbox? How to run scheduler for more than one time in a day Parse String in Quotes as without Quotes network programming with vb Error that I can't figure out Update ODBC DSN Properties in VB.NET Code? Can't seem to get AcceptButton working when changed in code? free tutorials Localization VS 2005 - VB.net |
|||||||||||||||||||||||