Formatting numeric values in a textbox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I go about formatting a numeric value for display in a textbox? I
have two textboxes in which I take the values entered into them and convert
them into decimal values via the System.Convert.ToDecimal() function. I need
to take the results of that calculation and display it in a third textbox
with a format of "10.00" if the two values are, for instance, "2.0" and
"5.00". What happens is that it gets displayed as "10.000". :(
 
Back
Top