大家好,如何在vb.net或c#中禁用启用鼠标和键盘 [英] Hi every one how to disable enable mouse and keyboard in vb.net or c#

查看:123
本文介绍了大家好,如何在vb.net或c#中禁用启用鼠标和键盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 大家好,如何在vb.net中禁用启用鼠标和键盘或c#


解决方案


如何在vb.net或c#中禁用启用鼠标和键盘





你的意思是在你的程序运行时禁用它们吗?
b


如果是这样,为什么会你想要?通常需要用户交互,即使只是为了终止程序而不必使用任务管理器,也需要用户支付。



如果你的意思是禁用它们用于*所有*正在运行的程序 - 对于Windows

本身 - 那么答案就是你做不到。如果操作系统允许,那将是一个主要的安全性b $ b缺陷。



- Wayne


 Hi everyone how to disable enable mouse and keyboard in vb.net or c#

解决方案

how to disable enable mouse and keyboard in vb.net or c#

Do you mean disable them for your own program when it's running?

If so, why would you want to? User interaction is usually needed, even 
if just to terminate the program without having to use the Task Manager.

If you mean disable them for *all* running programs - and for Windows
itself - then the answer is you can't. That would be a major security
defect if the operating system allowed it.

- Wayne


这篇关于大家好,如何在vb.net或c#中禁用启用鼠标和键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆