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
vbnetcoderAsked:
Who is Participating?
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.