DotNet Windows应用程序 [英] DotNet Windows Application

查看:76
本文介绍了DotNet Windows应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想通过单击子窗体的Button控件来突出显示(选择)MDI父窗体的按钮.

我该怎么办?

谢谢

Hi
i want to highlight(select) a button of MDI parent form by clicking a child form Button control.

how can i do this??

Thanks

推荐答案

在子级中创建一个新事件并在父级中订阅它(实例化该子级之后).

在子项中的按钮单击处理程序中,引发新事件.在父级的新事件处理程序中,聚焦所需的按钮.
Create a new event in the child and subscribe to it in the parent (after instanciating the child).

In the button''s click handler in the child, raise the new event. In the new event''s handler in the parent, Focus the required button.


这篇关于DotNet Windows应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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