Hi,

im my c# windows application i have some reports involving currency. However the way to set the format that I've seen "C" sets the currency symbol to the dollar sign instead of the GBP sound which is the one i need.

I've checked my systems regional settings and they're all correct. Is there a different format I should be using?

Many thanks

You need to set the Culture setting in the String.Format method. It seems to use en-us by default.

You would need to use something along the lines of: String.Format(System.Globalization.CultureInfo.CurrentCulture, "{0:C}", 12.99); This will set the format template to whatever system regional settings are for this format command.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.