//需要引用System.Windows.Forms名称空间
string languageName="五笔";//查找第一个五笔输入法
foreach(InputLanguage l in InputLanguage.InstalledInputLanguages)
{
if(l.LayoutName.IndexOf(languageName)>=0)
{
InputLanguage.CurrentInputLanguage=l;
break;
}
}
string languageName="五笔";//查找第一个五笔输入法
foreach(InputLanguage l in InputLanguage.InstalledInputLanguages)
{
if(l.LayoutName.IndexOf(languageName)>=0)
{
InputLanguage.CurrentInputLanguage=l;
break;
}
}
关键字词: