Thread.CurrentCulture

  • Thread starter Peter Morris [Droopy eyes software]
  • Start date
P

Peter Morris [Droopy eyes software]

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
 
I

Ilya Tumanov [MS]

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).
 
P

Peter Morris [Droopy eyes software]

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
 
I

Ilya Tumanov [MS]

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/d...ry/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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top