Click here to Skip to main content
15,907,906 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello;

Could you please let me know how I can change the Language of Language bar at runtime?

Thanks a lot
Posted

See here[^].
 
Share this answer
 
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");

or
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en-US");

or
Application.CurrentCulture = new System.Globalization.CultureInfo("en-US");



or use language code instead of "en-US" string
 
Share this answer
 
Hi:

The code below works well:

System.Globalization.CultureInfo Persian = new System.Globalization.CultureInfo("fa-IR");

InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(Persian);


There is a rich list of Culture Name here : http://msdn.microsoft.com/en-us/library/ms866170.aspx
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900