Im using this code for formatting my textbox.
Public Function TextFormat(ByVal sString As String) As String Dim num1 As Decimal Try num1 = Convert.ToDecimal(sString) TextFormat = FormatNumber(num1, 2) Return TextFormat Catch TextFormat = sString End Try End Function -the problem is its rounding off the number i input .. sample
textbox.text = "5999.99" it displaying "6000.00" how can i disable the auto rounding off number . or is there any other code for formatting text? "###,###,###.##" << it should be like this
thanks