程式寫好後,移到別台會出現的錯誤 |
#Region "On Screen Keyboard"
Private OSK As System.Diagnostics.Process
Public Sub CloseKeyboard()
If OSK IsNot Nothing Then
If Not OSK.HasExited Then
OSK.Kill()
End If
OSK.Close()
OSK = Nothing
End If
End Sub
Public Sub OpenKeyboard()
Try
If OSK Is Nothing OrElse OSK.HasExited Then
OSK = Process.Start("C:\Windows\System32\osk.exe")
End If
Catch
End Try
End Sub
#End Region
沒有留言:
張貼留言