//需要引用System.Windows.Forms名称空间
string languageName="五笔";//查找第一个五笔输入法
foreach(InputLanguage l in InputLanguage.InstalledInputLanguages)
{
if(l.LayoutName.IndexOf(languageName)>=0)
{
InputLanguage.CurrentInputLanguage=l;
break;
}
}
本文地址:http://com.8s8s.com/it/it42988.htm