I know this is simple but need some help in formatting a number in a textbox on Leave event. I am trying the below but I am getting incorrect results.
This is what Im expecting:
100 = 100
1000 = 1,000
10000 = 10,000
10000.25 = 10,000.25
2500000.432 = 2,500,000.432
txtAmount.Text = string.Format(System.Globalization.CultureInfo.GetCultureInfo("id-ID"), "{0:#,##0.##}", double.Parse(txtAmount.Text));