Reputation: 880
My winform application UI is in English. No localization is supported. When i use the OpenFileDialog dialog, it appears with a language as the hosted OS. I'd like to keep all dialogs in my app to be in english no matter what the hosting OS language is.
i tried to add this at the init of my app:
Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");
Unfortunately it didn't do the job.
Help anyone?
Upvotes: 4
Views: 2443
Reputation: 7751
Try to set Thread.CurrentThread.CurrentUICulture as well
CurrentUICulture is responsible for localization
more here http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.currentuiculture.aspx
and on some blogs http://www.siao2.com/2007/01/11/1449754.aspx
Upvotes: 1