It seems that Thread.CurrentCulture does not exist on compact framework 2.
Is there any other way I can set it?

I need to set the date format + currency sign.


Thanks

Pete

Re: Thread.CurrentCulture by Ilya

Ilya
Wed Sep 27 13:52:04 CDT 2006

That's right, it's not available. You can set date format and currency sign
in device locale properties or use specific formats explicitly.


--
Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).

"Peter Morris [Droopy eyes software]" <pete@droopyeyes.no.com.spam> wrote in
message news:ef9IeSl4GHA.1492@TK2MSFTNGP05.phx.gbl...
> It seems that Thread.CurrentCulture does not exist on compact framework 2.
> Is there any other way I can set it?
>
> I need to set the date format + currency sign.
>
>
> Thanks
>
> Pete
>



Re: Thread.CurrentCulture by Peter

Peter
Thu Sep 28 04:04:24 CDT 2006

Hi

> You can set date format and currency sign in device locale properties or
> use specific formats explicitly.

I don't want to have specific formats everywhere in my app. For example I
want to display a decimal value as currency

value.ToString("C");

which displays "$0.00" whereas I want "£0.00".

I also don't want to have to manually configure every PPC that needs to go
out with my software on (about 500 of them). Is there a DllImport or
something from which I can set the locale properties?


Thanks

Pete



Re: Thread.CurrentCulture by Ilya

Ilya
Thu Sep 28 13:43:19 CDT 2006

It's generally a bad idea to do that (e.g. in case you sell your application
to different country). But it can be done:


http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcelocal/html/cerefSetLocaleInfo.asp

--
Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).

"Peter Morris [Droopy eyes software]" <pete@droopyeyes.no.com.spam> wrote in
message news:ut2Na0t4GHA.3960@TK2MSFTNGP02.phx.gbl...
> Hi
>
>> You can set date format and currency sign in device locale properties or
>> use specific formats explicitly.
>
> I don't want to have specific formats everywhere in my app. For example I
> want to display a decimal value as currency
>
> value.ToString("C");
>
> which displays "$0.00" whereas I want "£0.00".
>
> I also don't want to have to manually configure every PPC that needs to go
> out with my software on (about 500 of them). Is there a DllImport or
> something from which I can set the locale properties?
>
>
> Thanks
>
> Pete
>
>