如何在Windows窗体中禁用Windows + D组合键 [英] how can i disable windows + d combination keys in windows forms

查看:606
本文介绍了如何在Windows窗体中禁用Windows + D组合键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个看起来像小部件的窗体



我必须禁用win +x组合kesy,如alt + f4 win + d。因为小部件没有使用快捷键最小化关闭的属性



i已禁用我的小部件中的win + d键但是已禁用所有应用程序



我所做的只是禁用我的应用程序的win + d和shorcut键,如widget。



当some1按任何胜利+ d然后像Internet Explorer(如果打开)这样的后台应用程序将被最小化或最大化。



任何想法我怎么能这样做?



像雨量计或类似xwidget有相同的属性!任何想法他们怎么能这样做?

i have a windows form which looks like a widget

i have to disable the win + "x" combination kesy like alt+f4 win+d . because widget have no properties of minimize close with shortcut keys

i have disabled the win+d keys in my widget but it disabled for all the apps

what i have o do is to only disable the win + d and shorcut keys for my application like widget .

when some1 press any win+d then the background application like internet explorer(if open) will be minimized or maximized.

any idea how can i do that ?

like rain meter or like xwidget have the same properties! any idea how can they do that?

推荐答案

如果你在谈论一个Windows小工具,那么有一些文章在其中 [ ^ ]可能会有所帮助。
If you are talking about a Windows gadget, then there are some articles here[^] that may help.


使用javascript

Opera MSIE Firefox Safari Chrome键按下

_________________________________________________________

219 91 91 91 91 WIN键(开始)

0 93 93 93 93 WIN菜单

65-90 65-90 65-90 65-90 65-90 A到Z



通过javascript阻止按键...
use javascript for that
Opera MSIE Firefox Safari Chrome Key pressed
_________________________________________________________
219 91 91 91 91 WIN Key (Start)
0 93 93 93 93 WIN Menu
65-90 65-90 65-90 65-90 65-90 A to Z

prevent key press for that by javascript...


这篇关于如何在Windows窗体中禁用Windows + D组合键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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