views:

309

answers:

1

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?

A: 

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://blogs.msdn.com/michkap/archive/2007/01/11/1449754.aspx

Peter Gfader