GaryWilsonCPA
Technical User
The code below works if you click the textbox one time, but if you click twice an amount 500,000.00 becomes 500.00
It works perfectly on the first click, just strange behaviour on second click.
LOANAMT = TEXTBOX NAME.
Any ideas???????
Private Sub LoanAmt_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LoanAmt.Click
Dim Fmt As String
Fmt = "#,##0.00"
LoanAmt.Text = Format(Val(LoanAmt.Text), Fmt)
End Sub
I have tried this in a button and gotten the same results.
Thanks