First of i'm using Visual Basic 2010 -> Windows Forms Application
I want like, when a value is updated, if it's over 1000 a label should indicate $1.000, if over 10000 => $10.000 and so on... How can i do that ?
If money > 1000 Then
lblMoney.Text = ("$" & money.ToString.Substring(0, 1) & "." &
_ money.ToString.Substring(1, 3))
ElseIf money > 10000 Then
lblMoney.Text = ("$" & money.ToString.Substring(1, 3) & "." &
_ money.ToString.Substring(3, 4))
End If
I tried this but it only works for the first if statement ... i don't know how to use these substrings, i just played with them a little bit and it worked out...
How can i do that ? If possible, without coding to put dots after every new number like 1.000 10.000 100.000 1.000.000 and so on