J Juan Oct 12, 2004 #1 I get a number from db and display it in a textbox control, how can i format the value as currency? thanks, Juan.
I get a number from db and display it in a textbox control, how can i format the value as currency? thanks, Juan.
P Patrik Löwendahl [C# MVP] Oct 12, 2004 #3 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.
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.