远程桌面应用程序中的C#捕获键盘输入/鼠标捕获

编程入门 行业动态 更新时间:2024-10-22 20:35:38
本文介绍了远程桌面应用程序中的C#捕获键盘输入/鼠标捕获的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好,

我遵循了本教程

www.youtube/watch?v= 2sCpd1HEMZw

我已经成功地在c#中创建了远程桌面查看器有这种担心,我如何使用图片框捕获鼠标和键盘事件 ?

I have been successful in creating a remote desktop viewer in c# now i have this worry, how do i get to use the picturebox to capture mouse and keyboard events ?

新手...需要帮助.

推荐答案

颂歌颂,

谢谢您在这里发布.

对于您的问题,以下事件会有所帮助.

For your question, the events below would be helpful.

>> 使用图片框捕获键盘事件

KeyDown : 此 API支持产品基础结构,不能直接在您的代码中使用.在控件具有焦点时按下键时发生.

KeyDown:This API supports the product infrastructure and is not intended to be used directly from your code. Occurs when a key is pressed when the control has focus.

KeyPress : 此 API支持产品基础结构,不能直接在您的代码中使用.在控件具有焦点时按下键时发生.

KeyPress:This API supports the product infrastructure and is not intended to be used directly from your code. Occurs when a key is pressed when the control has focus.

KeyUp : 此 API支持产品基础结构,不能直接在您的代码中使用.当控件具有焦点时释放键时发生.

KeyUp:This API supports the product infrastructure and is not intended to be used directly from your code. Occurs when a key is released when the control has focus.

>> 使用图片框捕获鼠标事件

MouseCaptureChanged , MouseClick , MouseDoubleClick , MouseDown , MouseEnter ,鼠标悬停,鼠标离开, MouseMove , MouseUp ,鼠标轮.

MouseCaptureChanged,MouseClick,MouseDoubleClick,MouseDown,MouseEnter,MouseHover,MouseLeave,MouseMove,MouseUp,MouseWheel.

我希望这会有所帮助.

最好的问候,

温迪

更多推荐

远程桌面应用程序中的C#捕获键盘输入/鼠标捕获

本文发布于:2023-11-07 05:27:31,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1565663.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:鼠标   应用程序   键盘输入   远程桌面

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!