How to read operating system's current culture (regional settings)

A

adi

Hi
I'm using .NET Framework 1.1
My application needs to read the system's language settings.
How to do this?

Thanks.
 
M

Morten Wennevik

Hi Adi,

Use System.Threading.Thread.CurrentThread.CurrentCulture. This is the
culture your thread is running in.
System.Threading.Thread.CurrentThread.CurrentUICulture contains the
culture used for your resources files.
 
A

adi

Thanks

To be more explicit, I need to read the settings that I can found in
Control Panel / Regional and Language Options / Regional Options
property tab.

Is there at least an API function to call?


Morten Wennevik a scris:
 
M

Morten Wennevik

All this is contained inside the CultureInfo.DateTimeFormat,
CultureInfo.NumberFormat etc.

You can also read system settings directly using the SystemInformation
class or tap into WMI using the classes in System.Management /
System.Diagnostics


Thanks

To be more explicit, I need to read the settings that I can found in
Control Panel / Regional and Language Options / Regional Options
property tab.

Is there at least an API function to call?


Morten Wennevik a scris:
 

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