-
July 18th, 2008, 03:09 AM
#1
change system language in language bar
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
-
July 18th, 2008, 04:16 AM
#2
Re: change system language in language bar
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.
- Make it run.
- Make it right.
- Make it fast.
Don't hesitate to rate my post.
-
July 19th, 2008, 03:16 AM
#3
Re: change system language in language bar
sir
I want to chnages the input locale, not the language of the application
-
August 21st, 2009, 08:50 AM
#4
Re: change system language in language bar
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|