【问题标题】:Is there such a thing as a virtual keyboard component/library for Winforms?是否有 Winforms 的虚拟键盘组件/库之类的东西?
【发布时间】:2012-05-11 00:30:55
【问题描述】:

可能有一个用于 WPF,但不确定 WinForms。

【问题讨论】:

标签: c# winforms


【解决方案1】:

我不确定 C# 中有什么东西,但是有一个很好的库来模拟键盘输入。所以你可以尝试使用它(Windows Input Simulator)并开发自己的虚拟键盘。

使用非常简单,例如:

//Simulate Shift
public void btn_Shift(object sender, EventArgs e)
{
   InputSimulator.SimulateKeyPress(VirtualKeyCode.SHIFT);
}

【讨论】:

  • 看来这是 WPF 版本的包装器
猜你喜欢
  • 2010-10-11
  • 1970-01-01
  • 1970-01-01
  • 2023-03-08
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多