C#+ currency data manipulation

  • 12 years ago


    Hi all,

    i have three text boxes first containing "$200", second containing "$500". what i have to do is just display the result after adding these two text box to be displayed in third textbox in form "$700";

    while converting these data from decimal to currency i did:
    decimal dec= string.Format("0:c", price);

    but i couldnot get the reverse .

    actually i want to put the code in textbox value changed event handler.


Post a reply

Enter your message below

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“If Java had true garbage collection, most programs would delete themselves upon execution.” - Robert Sewell