开发者

Winform Save file dialog - localization override

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 开发者_JAVA技巧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?


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜