Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open a form on a separate thread due to language requirements

I am using .NET 4.0. All of my forms have localization enabled and are translated into 3 languages. I would like to open my main form, the one we run in program.cs, as a login form with a language button. Once the language is selected, since I cannot change the culture info of the current thread, I would like to open a new thread in the requested culture. What's the simplest way of doing that ?

Thanks

like image 706
user592719 Avatar asked Dec 29 '22 02:12

user592719


1 Answers

Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-ca");
like image 184
bleepzter Avatar answered Feb 06 '23 20:02

bleepzter