[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 278
  • Last Modified:

make sure value of text box appears as currency

I have a textbox ... and when dollar amount is retrieved from the database it comes back like this

4.0000

how would i format the textbox so that it appears like a normal dollar amount:

example:

4.00
0
vbnetcoder
Asked:
vbnetcoder
  • 2
1 Solution
 
jppintoCommented:
txtboxAmount.Text = Format(txtboxAmount.Text,"0.00")

0
 
jppintoCommented:
txtboxAmount.Text = txtboxAmount.ToString("#0.00")
0
 
srikanthreddyn143Commented:
You can use above statement or in generic txtboxAmount.Text = txtboxAmount.ToString("##.##")
0
 
vbnetcoderAuthor Commented:
ty
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now