how to format a string (number) as currency?

  • Thread starter Thread starter Juan
  • Start date Start date
J

Juan

I get a number from db and display it in a textbox control, how can i format
the value as currency?

thanks,
Juan.
 
string.Format("{0:C", dbValue);

are you using databinding? If so you kan hook the parse and format events
for the textbox binding and do he formatting in there.
 
Back
Top