//获取系统中已经安装的文字输入法 InputLanguageCollection MyInputs = InputLanguage.InstalledInputLanguages; //获取当前输入法信息 InputLanguage CurrentInput = InputLanguage.CurrentInputLanguage; string language = CurrentInput.LayoutName; IntPtr pt = new IntPtr(134481924); foreach (InputLanguage item in MyInputs) { if (item.Handle.Equals(pt)) { //设置当前输入法 InputLanguage.CurrentInputLanguage = item; } }