C# – Winform Save file dialog – localization override

clocalizationwinforms

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?

Best Answer

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

Related Topic