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 / Windows Forms / WinForm General / March 2006

Tip: Looking for answers? Try searching our database.

Where to set the The System.Globalization.CultureInfo?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David - 15 Mar 2006 23:15 GMT
I have a small Winform program where I set specific text 2 buttons to
be different for UK English..  This was done via the "Language" option
on the form properties.

I call the following  code prior to calling "InitializeComponent();"

System.Threading.Thread.CurrentThread.CurrentCulture = new

System.Globalization.CultureInfo("en-GB");
           

However, the buttons remain on the Default (en-US) rather than
changing to the UK defaults.

This is the correct way according to the MS doc.  DO I need to set
some other option on my computer to allow me to see the UK text?

Also, the resource files exist and are called "frmMain.en-GB.resx"

Thanks
Stoitcho Goutsev (100) - 16 Mar 2006 14:55 GMT
David,

Thread.CurrentUICulture is what changes the UI look.

Signature

HTH
Stoitcho Goutsev (100)

>I have a small Winform program where I set specific text 2 buttons to
> be different for UK English..  This was done via the "Language" option
[quoted text clipped - 15 lines]
>
> Thanks

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.