Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Wednesday, February 16, 2011 3:51 PM
Hello
I've got a application that works for my clients in the U.S. however some clients are having issues in German. I'd like to find out what Regional and Language settings that have. I'd like to create an app that they can run that will create a report of what they have set. Any idea how to do that?
Thanks
All replies (3)
Wednesday, February 16, 2011 4:03 PM ✅Answered
Hello William,
Use the CultureInfo class to get information about the current culture. More details about this can be found here: http://stackoverflow.com/questions/1542409/how-to-get-current-regional-settings-in-c
Cornel Croitoriu - Senior Software Developer - www.Biz-Forward.com | www.Croitoriu.NET
Wednesday, February 16, 2011 4:04 PM ✅Answered
CultureInfo.CurrentCulture returns the current CultureInfo.
You can check CultureInfo.CurrentCulture.NumberFormat and CultureInfo.CurrentCulture.DateTimeFormat properties, for example.
Friday, February 18, 2011 10:52 AM ✅Answered
Hi William,
Welcome to the MSDN Forum.
According to your description of the problem, the issue you are experiencing is how to get current Location (Regional and Language Options). The CultureInfo Provides information which includes the names for the culture, the writing system, the calendar used, and formatting for dates and sort strings. Here is an example about how to get the System's Regional setting, you can refer to it: http://social.msdn.microsoft.com/Forums/en-US/csharplanguage/thread/e106ab4a-3d64-42b8-a31a-ba946c315a22.
I hope this will help resolve your problem. If I have misunderstood anything, please feel free to let me know.
Best Regards,
Mio
Mio Miao[MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.