I can start tabtip (virtual keyboad) in my program but for some reason I can't kill it.
This is my code:
Private tabtipProcess As Process
Private Sub t_Enter(sender As Object, e As EventArgs)
tabtipProcess = Process.Start("tabtip")
End Sub
Private Sub t_Leave(sender As Object, e As EventArgs)
tabtipProcess.Kill()
End Sub
On the line tabtipProcess.Kill()
I get this error:
Cannot process request because the process (5312) has exited.
i'v got it:
For Each pkiller As Process In Process.GetProcesses
If String.Compare(pkiller.ProcessName, "tabtip", True) = 0 Then
pkiller.Kill()
End If
Next
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.