Private Function bIsHave() As Boolean
Try
Dim num As Integer = 0
num = System.Windows.Forms.InputLanguage.InstalledInputLanguages.Count
If num > 0 Then
For i As Integer = 0 To num - 1
Dim sName As String = ""
sName = System.Windows.Forms.InputLanguage.InstalledInputLanguages.Item(i).LayoutName
If sName.IndexOf("微软拼音输入法") >= 0 Then
Return True
End If
Next
Return False
Else
Return False
End If
Catch ex As Exception
Return False
End Try
End Function
系统输入法检测
最新推荐文章于 2021-05-29 07:18:22 发布