如何提高快捷方式 [英] How to raise a shortcut
问题描述
我想要一个Button.Click事件''加注''一个快捷方式。
如果例如Button1被点击,我想要有一个快捷方式''CTRL + F12''被激活。
什么是最好的方法来实现这个目标。
TIA,
Michael
Hi,
I want to have a Button.Click event ''raise'' a shortcut.
If eg Button1 is Clicked, I want to have a shortcut ''CTRL + F12'' activated.
What''s the best way to acchieve this.
TIA,
Michael
推荐答案
" Michael Maes" < mi ********** @ community.nospamschrieb:
"Michael Maes" <mi**********@community.nospamschrieb:
我想要一个Button.Click事件''raise''快捷方式。
如果单击Button1,我想要一个快捷键''CTRL + F12''
激活。
I want to have a Button.Click event ''raise'' a shortcut.
If eg Button1 is Clicked, I want to have a shortcut ''CTRL + F12''
activated.
调用菜单项'''PerformClick''方法。
-
MS Herfried K. Wagner
MVP< URL:http://dotnet.mvps.org/>
VB< URL:http:// dotnet .mvps.org / dotnet / faqs />
Call the menu item''s ''PerformClick'' method.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
PerformClick-Method引发Click-Event。
我是什么需要的是在代码中提升/激活快捷方式(无论控制是什么,控制代码的是
)。
说清楚:我可以想用Label.MouseEnter激活/提高
某些快捷方式。
" Herfried K. Wagner [MVP]"写道:
The PerformClick-Method Raises the Click-Event.
What I need is to raise/activate a Shortcut in code (whatever the control
calling the code is).
To make it clear: I could want to use Label.MouseEnter to activate/raise a
certain Shortcut.
"Herfried K. Wagner [MVP]" wrote:
" Michael Maes" < mi ********** @ community.nospamschrieb:
"Michael Maes" <mi**********@community.nospamschrieb:
我想要一个Button.Click事件''raise''快捷方式。
如果单击Button1,我想要一个快捷键''CTRL + F12''
激活。
I want to have a Button.Click event ''raise'' a shortcut.
If eg Button1 is Clicked, I want to have a shortcut ''CTRL + F12''
activated.
调用菜单项''''PerformClick''方法。
-
MS Herfried K. Wagner
MVP< URL:http://dotnet.mvps.org/>
VB< URL:http:// dotnet .mvps.org / dotnet / faqs />
Call the menu item''s ''PerformClick'' method.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
迈克尔,
是吗使用
快捷方式执行代码不是更正常吗?
Cor
" Michael Maes < mi ********** @ community.nospamschreef in bericht
新闻:FD ******************** ************** @ microsof t.com ...
Michael,
Is it not more normal to perform the code that should be done with the
shortcut?
Cor
"Michael Maes" <mi**********@community.nospamschreef in bericht
news:FD**********************************@microsof t.com...
PerformClick-Method引发Click-Event。 />
我需要的是在代码中引发/激活一个快捷方式(无论控制是什么,控制代码的是
)。
要制作很清楚:我可以使用Label.MouseEnter来激活/提高某个快捷方式。
" Herfried K. Wagner [MVP]"写道:
The PerformClick-Method Raises the Click-Event.
What I need is to raise/activate a Shortcut in code (whatever the control
calling the code is).
To make it clear: I could want to use Label.MouseEnter to activate/raise a
certain Shortcut.
"Herfried K. Wagner [MVP]" wrote:
>" Michael Maes" < mi ********** @ community.nospamschrieb:
>"Michael Maes" <mi**********@community.nospamschrieb:
我想要一个Button.Click事件''raise''快捷方式。
如果单击Button1,我想要一个快捷键''CTRL + F12''
激活。
I want to have a Button.Click event ''raise'' a shortcut.
If eg Button1 is Clicked, I want to have a shortcut ''CTRL + F12''
activated.
调用菜单项''''PerformClick''方法。
- MS Herfried K. Wagner
MVP < URL:http://dotnet.mvps.org/>
VB< URL:http://dotnet.mvps.org/dotnet/faqs/>
Call the menu item''s ''PerformClick'' method.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
这篇关于如何提高快捷方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!