textbox currency

  • Thread starter Thread starter Jose
  • Start date Start date
J

Jose

Hello. 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
 
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

This is possible but your question (problem) is very hard to understand.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top