Click here to Skip to main content
11,573,935 members (66,732 online)
Click here to Skip to main content

Tagged as

Changing Input Language

, 16 Nov 2010 CPOL 11K 8
Rate this:
Please Sign up or sign in to vote.
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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

alrosan
Software Developer
Jordan Jordan
No Biography provided

You may also be interested in...

Comments and Discussions

 
GeneralMy vote of 1 Pin
Hello_Hi20-Apr-14 19:51
memberHello_Hi20-Apr-14 19:51 
GeneralMy vote of 5 Pin
aalhanane1-Apr-13 4:32
memberaalhanane1-Apr-13 4:32 
GeneralMy vote of 5 Pin
yoke12-Sep-12 20:11
memberyoke12-Sep-12 20:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150624.2 | Last Updated 16 Nov 2010
Article Copyright 2010 by alrosan
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid