禁用Ctrl + Esc组合键的代码 [英] code to disable Ctrl+Esc keys combination

查看:153
本文介绍了禁用Ctrl + Esc组合键的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
在Windows XP上应禁用C#或VB.Net中的Ctrl + Esc组合键的代码是什么.请帮助,它的非常紧急.请通过以下方式发送解决方案(代码):[已删除电子邮件地址]
非常感谢:rose :,
Md Manazir

Hi All,
What is the code to disable Ctrl+Esc keys combination in C# or VB.Net which should work on Windows XP. Please Help, Its very urgent. Please send the solution(Code) at: [Email address removed]
Thanx With Regards:rose:,
Md Manazir

推荐答案

代码项目存档 [ ^ ]进行救援!


如果只希望将此应用于您的应用程序,则可以处理表单的KeyDownKeyPress事件,在MSDN上搜索示例,其中有很多示例.不要忘记设置FormKeyPreview.

为了更广泛的使用,您将需要使用Windows的键盘处理功能.
[
If you just want this to apply to your application then you can handle the KeyDown or KeyPress event of your form, search on MSDN for examples, there are plenty of them. Not forgetting to set the KeyPreview of your Form.

For wider use you will need to hook into Windows'' keyboard handling.
This[^] might help with that.


这篇关于禁用Ctrl + Esc组合键的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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