简体   繁体   English

RDP ActiveX Ctrl + Alt + Del

[英]RDP ActiveX Ctrl+Alt+Del

In our C# application we use the RDP viewer as an ActiveX control. 在我们的C#应用​​程序中,我们将RDP查看器用作ActiveX控件。 The application has its own toolbar with a Ctrl + Alt + Del button. 该应用程序具有自己的工具栏,带有Ctrl + Alt + Del按钮。 There does not seem to be a method on the ActiveX control to perform this function. ActiveX控件上似乎没有方法可以执行此功能。 I know you can hit Ctrl + Alt + End on your keyboard which is fine but how do I do that from the toolbar button click? 我知道您可以键盘上的Ctrl + Alt + End键,但这很好,但是如何从工具栏上单击鼠标呢?

Try to use the SendKeys class . 尝试使用SendKeys类

In this example, you could send CTRL + ALT + END as this: 在此示例中,您可以这样发送CTRL + ALT + END

 SendKeys.Send("(^%{END})");

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM