Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Changing Input Language

0.00/5 (No votes)
16 Nov 2010 1  
How to change input language
List<InputLanguage> lstInstalledIL = new List<InputLanguage>();
private void Form1_Load(object sender, EventArgs e)
{
    foreach (InputLanguage ilItem in InputLanguage.InstalledInputLanguages)
    {
        //Add all installed input languages on system to List<>
        lstInstalledIL.Add(ilItem);
        //Add names of installed input languages to ListBox control
        lstlnputLanguages.Items.Add(ilItem.Culture.EnglishName);
    }
}
private void lstlnputLanguages_SelectedIndexChanged(object sender, EventArgs e)
{
    //set input language
    InputLanguage.CurrentInputLanguage = lstInstalledIL[((ListBox)sender).SelectedIndex];
}

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here