You must Sign In to post a response.
  • Category: Windows

    Chaning currency format to different nations at applicaiton level

    Hi Team,

    My application is .NET win forms with c#.

    I have requirement to change the currency format of the application to different countries.

    Example:
    US = 10,000.00
    EU = 10.000,00

    I should be able to configure this at application level. Also, I should be able to configure this for other countries also as part of future requirement.


    Kindly help me.


    Regards
    Venkata Rajesh M
  • #767499
    Hi,
    Please try this code:

    double objInput = 1234567890.1234;
    Console.WriteLine(objInput.ToString("C2", CultureInfo.CurrentCulture));//... This display currency upto 2 digits so ... C9 = display currency upto 9 digits
    Console.WriteLine(objInput.ToString("C", CultureInfo.CreateSpecificCulture("en-IN")));//... INDIA'n currency
    Console.WriteLine(objInput.ToString("C", CultureInfo.CreateSpecificCulture("en-US")));//... US currency
    Console.WriteLine(objInput.ToString("C", CultureInfo.CreateSpecificCulture("el-GR")));//... Greece currency


  • Sign In to post your comments