日期:2014-05-17 浏览次数:20860 次
private void SetCurrentLanguage()
{
InputLanguageCollection collects = InputLanguage.InstalledInputLanguages;
string currentlanguage = InputLanguage.CurrentInputLanguage.LayoutName;
if (currentlanguage == "简体中文 - 美式键盘")
{
for (int i = 0; i < collects.Count; i++)
{
if (collects[i].LayoutName != currentlanguage)
{
InputLanguage.CurrentInputLanguage = collects[i];
break;
}
}
}
}