The property in RegionInfo is readonly, but the one in
CultureInfo.NumberFormat is not -- you can try that one to see if it helps?

Signature
MichKa [MS]
NLS Collation/Locale/Keyboard Technical Lead
Globalization Infrastructure, Fonts, and Tools
Microsoft Windows International Division
This posting is provided "AS IS" with
no warranties, and confers no rights.
> Hi,
>
[quoted text clipped - 16 lines]
>
> Regards Tim.
|||Cypher||| - 03 Jan 2005 20:23 GMT
Hi.
Here is a code snippet taken from my homemade 18n class.
public static string Currency(int price){
NumberFormatInfo nfi = CultureInfo.CurrentCulture.NumberFormat;
//ci.NumberFormat;
return price.ToString("c",nfi);
}
HTH.
Regards.
> The property in RegionInfo is readonly, but the one in
> CultureInfo.NumberFormat is not -- you can try that one to see if it helps?
[quoted text clipped - 19 lines]
> >
> > Regards Tim.
Michael (michka) Kaplan [MS] - 03 Jan 2005 22:07 GMT
I believe you will find that the one from CurrentCulture is the one thzt
will be used automatically when no culture is passed.

Signature
MichKa [MS]
NLS Collation/Locale/Keyboard Technical Lead
Globalization Infrastructure, Fonts, and Tools
Microsoft Windows International Division
This posting is provided "AS IS" with
no warranties, and confers no rights.
> Hi.
>
[quoted text clipped - 37 lines]
> > >
> > > Regards Tim.
Tim Jarvis - 03 Jan 2005 22:48 GMT
> The property in RegionInfo is readonly, but the one in
> CultureInfo.NumberFormat is not -- you can try that one to see if it
> helps?
Hi Michael,
Thanks for your reply, problem is with this approach is that I would
need to change the symbol each time I create a CultureInfo instance,
which of course means that I need to store my Symbol (or hard code it)
What I am after is a mechanism to change (and have the system store)
the default symbol, so that when I create the CultureInfo instance the
NumberFormat property already contains the right Symbol.
I know that you can change the symbol using the control panel (regional
Language options), so I am assuming you must be able to do it
programatically, perhaps there is a not a .NET way of doing it, maybe
via PInvoke...Any Idea's
Regards Tim.
Michael (michka) Kaplan [MS] - 04 Jan 2005 22:29 GMT
You can change it via the SetLocaleInfo method with the LOCALE_SCURRENCY
flag. This is the very API call that Regional Opions uses when you change
the symbol in its own UI.

Signature
MichKa [MS]
NLS Collation/Locale/Keyboard Technical Lead
Globalization Infrastructure, Fonts, and Tools
Microsoft Windows International Division
This posting is provided "AS IS" with
no warranties, and confers no rights.
> > The property in RegionInfo is readonly, but the one in
> > CultureInfo.NumberFormat is not -- you can try that one to see if it
[quoted text clipped - 15 lines]
>
> Regards Tim.
Tim Jarvis - 05 Jan 2005 02:20 GMT
> You can change it via the SetLocaleInfo method with the
> LOCALE_SCURRENCY flag. This is the very API call that Regional Opions
> uses when you change the symbol in its own UI.
Fabulous, thanks for that Michka, its much appreciated.
Regards Tim.