Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Languages / C#

Changing UI language in C# programatically

2.88/5 (7 votes)
27 Mar 2010CPOL 1  
In your form, I usually set this in the enter event of the control (usually a textbox).InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(InputLanguage.FromCulture(System.Globalization.CultureInfo.GetCultureInfo(en-US));Of course you can substitute the Culture to...
In your form, I usually set this in the enter event of the control (usually a textbox).

<br />
InputLanguage.CurrentInputLanguage = <br />
InputLanguage.FromCulture(InputLanguage.FromCulture(System.Globalization.CultureInfo.GetCultureInfo("en-US"));<br />



Of course you can substitute the Culture to whatever you would like. I usually use "ar-JO" (Arabic - Jordan) quite a bit here.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)