本文介绍了在桌面下打开和关闭Windows 8触摸键盘Tabtip的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要从Windows 8(桌面winform .NET)下的程序关闭Tabtip键盘.我发现需要时将其打开,运行TabTip.exe以显示Windows 8 Touch键盘,但我无法在需要时将其关闭!我试图用process.kill终止该进程,但是它不起作用,有人知道如何执行此操作?
I need to close the tabtip keyboard from a program under Windows 8 (desktop winform .NET).I found to open it when need, run TabTip.exe to display the Windows 8 Touch keyboard, but i can't close it when i need!I tried to kill the process with process.kill but it doesn't work, someone has an idea how to do it?
问候让·克劳德
推荐答案
尝试以下操作-用TabTip替换Osk
Try the below- Replace Osk with TabTip
公共类表格1
Private oskProcess As Process
Private Sub openButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles openButton.Click
If Me.oskProcess Is Nothing OrElse Me.oskProcess.HasExited Then
If Me.oskProcess IsNot Nothing AndAlso Me.oskProcess.HasExited Then
Me.oskProcess.Close()
End If
Me.oskProcess = Process.Start("osk")
End If
End Sub
Private Sub closeButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles closeButton.Click
If Me.oskProcess IsNot Nothing Then
If Not Me.oskProcess.HasExited Then
'CloseMainWindow would generally be preferred but the OSK doesn't respond.
Me.oskProcess.Kill()
End If
Me.oskProcess.Close()
Me.oskProcess = Nothing
End If
End Sub
结束班级
这篇关于在桌面下打开和关闭Windows 8触摸键盘Tabtip的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!