如何从子类调用MDI Parent工具条的Keydown [英] How to Call Keydown of toolstrip of MDI Parent from a child class

查看:87
本文介绍了如何从子类调用MDI Parent工具条的Keydown的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含工具条的MDI表格。

在工具栏中我有一个新按钮。



我有一个孩子来自,

从那个孩子表格我想要访问MDI工具条的keydown事件。

(我的动机是快捷键)



如果我从我的子表单点击CTRL + N,然后我想点击MDI上工具栏的新按钮



你会怎么做那个?

I have a MDI form containing a toolstrip.
in toolstrip i have a New Button.

and i have a Child From,
from that child form i want to access keydown event of MDI toolstrip.
(my motive is to shortcut keys)

if i click CTRL + N from my Child form, then i want to perform click of the new button of Toolbar on MDI

how would u do that ?

推荐答案

只需在你的应用程序中创建一个 Application Hook

点击此链接: -

处理 - Global-Mouse-and-Keyboard-in-C# [ ^ ]
Just create an Application Hook in your application.
Click this link:-
Processing-Global-Mouse-and-Keyboard-Hooks-in-C#[^]


这篇关于如何从子类调用MDI Parent工具条的Keydown的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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