Click here to Skip to main content
15,883,904 members
Articles / Programming Languages / C#
Tip/Trick

Changing UI language in C# programatically

Rate me:
Please Sign up or sign in to vote.
2.88/5 (7 votes)
27 Mar 2010CPOL 16.3K   5  
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)


Written By
EMC
Canada Canada
A Systems Engineer, a Software Engineer, a Consultant and an Entrepreneur as well as a Barbeque aficionado.

Currently, working as a Senior Systems Engineer at Intergraph, where I help enterprises move the cloud.

Married and the proud father of two boys, my family is the center of my happy universe Smile | :)

Comments and Discussions

 
-- There are no messages in this forum --