Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我们的 C# 应用程序中,我们将 RDP 查看器用作 ActiveX 控件。该应用程序有自己的带有++Ctrl按钮的工具栏。ActiveX 控件上似乎没有执行此功能的方法。我知道您可以在键盘上点击++ ,这很好,但是我如何通过单击工具栏按钮来做到这一点?AltDelCtrlAltEnd
尝试使用SendKeys 类。
在这个例子中,你可以这样发送CTRL++ ALT:END
SendKeys.Send("(^%{END})");