Hi All
Can anyone help me
I wana change default system language programeticaly
for example
i whish to chage my window language from english to urdu using C#.net
thanx
Printable View
Hi All
Can anyone help me
I wana change default system language programeticaly
for example
i whish to chage my window language from english to urdu using C#.net
thanx
Language bar don't affect system default, but only current application, and what more, it chnages the input locale, not the language of the application. If you want to change the language in which you app runs, you need to change its culture, e.g. with System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(language);.
Changing system default with application is not neccessary, there is tool in Control Panel shiped with the OS.
sir
I want to chnages the input locale, not the language of the application
You can change the input language for your application in c# by using the LoadKeyboardLayout() API.
For Example:
If you want to change the input language for your application to Hebrew, you can use the LoadKeyboardLayout() API as follows:
const uint KLF_ACTIVATE = 1; // activate the layout
const string LANG_HE_IL = "0000040d"; //Keyboard language identifier for Hebrew
//load and activate the layout for Hebrew
LoadKeyboardLayout(LANG_HE_IL, KLF_ACTIVATE);
Once you load the keyboard layout, whatever you type after selecting your app, will be in hebrew language.