private void Form1_Load(object sender, System.EventArgs e)
{
InputLanguageCollection ilc = InputLanguage.InstalledInputLanguages;
foreach ( InputLanguage il in ilc )
{
comboBox1.Items.Add( il.LayoutName );
}
comboBox1.SelectedIndex = InputLanguage.InstalledInputLanguages.IndexOf( InputLanguage.CurrentInputLanguage ) ;
}
private void comboBox1_SelectedIndExchanged(object sender, System.EventArgs e)
{
InputLanguage il = InputLanguage.InstalledInputLanguages[ comboBox1.SelectedIndex ];
InputLanguage.CurrentInputLanguage = il;
}
private void ChangeInput(object sender, System.Windows.Forms.InputLanguageChangedEventArgs e)
{
InputLanguage il = e.InputLanguage ;
int i = InputLanguage.InstalledInputLanguages.IndexOf( il );
if( i >= 0 && i < InputLanguage.InstalledInputLanguages.Count )
{
comboBox1.SelectedIndex = i ;
}
}
private void But_Eixt_Click(object sender, System.EventArgs e)
{
Application.Exit();
}