C # code for switching input method

xiaoxiao2021-03-06  92

// need to reference System.Windows.Forms namespace string languageName = "stroke"; // Find the first five stroke input method foreach (InputLanguage l in InputLanguage.InstalledInputLanguages) {if (l.LayoutName.IndexOf (languageName)> = 0 ) {INPUTLANGUAGE.CURRENTINPUTLANGUAGUE = L; Break;}}

转载请注明原文地址:https://www.9cbs.com/read-95634.html

New Post(0)