Click here to Skip to main content
Click here to Skip to main content

Changing Input Language

By , 16 Nov 2010
Rate this:
Please Sign up or sign in to vote.
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)

About the Author

alrosan
Software Developer
Jordan Jordan
No Biography provided

Comments and Discussions

 
GeneralMy vote of 5 Pinmemberaalhanane1-Apr-13 4:32 
GeneralMy vote of 5 Pinmemberyoke12-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 | Mobile
Web01 | 2.8.140415.2 | Last Updated 16 Nov 2010
Article Copyright 2010 by alrosan
Everything else Copyright © CodeProject, 1999-2014
Terms of Use
Layout: fixed | fluid