Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / February 2007

Tip: Looking for answers? Try searching our database.

Regional settings

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chakra - 08 Jan 2005 10:39 GMT
We have a Windows.NET application which uses CultureInfo to set the date
format based on the PC's regional settings. We find that if we change the
regional settings on a PC, unless we re-build the application, it throws an
error when we use the application. How does re-building the application help
to apply the regional settings ?
Dmitriy Lapshin [C# / .NET MVP] - 10 Jan 2005 13:15 GMT
Hi,

Sounds really strange, as far as I remember Microsoft recommends that
Thread.CurrentCulture and Thread.CurrentUICulture properties are used to
determine current regional settings. Make sure you use these properties in
an appropriate manner (MSDN should have detailed description as well as some
code snippets).

Maybe you could post a code snippet for the problematic piece of code?

Signature

Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx

> We have a Windows.NET application which uses CultureInfo to set the date
> format based on the PC's regional settings. We find that if we change the
[quoted text clipped - 3 lines]
> help
> to apply the regional settings ?
Jim Zethmayr - 06 Feb 2007 23:02 GMT
No matter what culture I set the regional settings to, the CurrentCulture and CurrentUICulture always return English, so what good is it?  I have been googling for hours trying to find out how to get the current regional settings so that I can set the thread CurrentCulture to match

From http://developmentnow.com/g/6_2005_1_0_0_35958/Regional-settings.ht

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.