禁用“windows + d”和“alt + f4”当我的Windows窗体运行时。 [英] disable the "windows+d" and "alt+f4" when my windows form is running.

查看:86
本文介绍了禁用“windows + d”和“alt + f4”当我的Windows窗体运行时。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在运行时为我的Windows窗体禁用windows + d和alt + f4

i只能通过关闭按钮和最小化按钮关闭它们。

i不想要windows + d和alt + f4键来处理我的胜利表格。

如果我的表格正在运行,有些人按windows + d和alt + f4然后这个动作将设置在

其他在后台运行的应用程序,它不会影响我的表格!

任何帮助?

how can i disable the "windows+d" and "alt+f4" for my windows forms when they are running
i can only close them by the close buttons and minimiza buttons.
i dont want "windows+d" and "alt+f4" keys to handle my win forms.
if my forms is running and some1 press "windows+d" and "alt+f4" then this action will be set on
other application which is running in background and it will not affect on my forms!
any help?

推荐答案

尽管我从未尝试过,但我怀疑它是否可以完成。我确切知道,你不能禁用Ctrl + Alt + Delete,这是有充分理由的(否则就有可能阻止系统),而且我认为你不能做你想做的事。



但你不应该尝试做这样的事情,因为这将是一个最大的滥用。想想你的用户。



在提问时你应该总是解释你的最终目标。所以,我不知道你想要实现什么,为什么,但我有一个猜测。也许你需要的是所谓的信息亭模式。请看一下:

使用C#以Kiosk模式运行网站 [ ^ ],

c#program ctrl-alt-del screen windows 7 [ ^ ]。



-SA
Even though I never tried, I doubt that it can be done. What I know for sure, you cannot disable Ctrl + Alt + Delete, for a good reason (otherwise it would be possible to block the system), and I don''t think you can do what you want.

But you should not try to do such thing, as it would be a greatest abuse. Think about your users.

You should always explain your ultimate goals when asking question. So, I don''t know what are you trying to achieve and why, but I have one guess. Maybe what you need is so called "kiosk mode". Please take a look:
Running a Web Site in Kiosk Mode with C#[^],
c# program ctrl-alt-del screen windows 7[^].

—SA


这篇关于禁用“windows + d”和“alt + f4”当我的Windows窗体运行时。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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