Tuesday, March 6, 2007

Input Language

While you have a multilingual application you may intended to set the current input language (Keyboard language) in your application. There is a class called InputLanguage in System.Windows.Forms namespace, which Provides methods and fields to manage the input language (as Microsoft says)

In this Windows C# sample I 'm going to list all the InputLanguages installed on the current windwos and set the InputLanguage which the user desired.

For instance I have installed English and Farsi keyboard installed on my windows xp. So a comboBox list these two languages and whenever the user changes the languages on it, the system input language will change to the selected one. On the other hand I have two specefied textbox which I want whenever the user tries to type something on these textboxed change the keyboard language to farsi or english as desired.


1 comment:

Anonymous said...

nice post. thanx :)