WPF:Windows 8 Tabtip关闭了吗? [英] WPF: Windows 8 Tabtip close?
本文介绍了WPF:Windows 8 Tabtip关闭了吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在搜索,但仍然找不到有关此问题的答案.我设法通过以下代码打开了标签提示的过程:
I've been searching and still can't find answers about this problem. i had managed to open the process of the tab tip by this code:
Private Sub TextBox1_GotFocus(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles TextBox1.GotFocus
Process.Start("C:\Program Files\Common Files\Microsoft Shared\ink\TabTip.exe")
End Sub
我一直试图终止该进程,但仍然无法正常工作.
ive been trying to kill the process but still it won't work.
但是将其返回停靠或关闭.仍然找不到任何答案.这可能吗?希望有人帮忙.谢谢!:)
But returning it to dock or closed. still can't find any answers.Is this possible? hope someone cud help. thanks! :)
推荐答案
/// <summary>
/// Close Touch Keyboard
/// </summary>
public static void CloseTouchKeyboard()
{
try
{
foreach (var p in Process.GetProcessesByName("C:\\Program Files\\Common Files\\microsoft shared\\ink\\TabTip.exe"))
{
p.Kill();
}
}
catch (Exception e)
{
Logger.Error(e.ToString());
}
}
/// <summary>
/// Open Touch keyboard
/// </summary>
public static void OpenTouchKeyboard()
{
try
{
Process.Start("C:\\Program Files\\Common Files\\microsoft shared\\ink\\TabTip.exe");
}
catch (Exception e)
{
Logger.Error(e.ToString());
}
}
这篇关于WPF:Windows 8 Tabtip关闭了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文