MDI窗体与子窗体检测添加或删除 [英] MDI Form detecting with a child form is added or removed

查看:127
本文介绍了MDI窗体与子窗体检测添加或删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个事件,我可以用它来判断一个子窗体已被添加或删除MDI父?

Is there an event I can use to tell if a child form has been added or removed from the MDI parent?

推荐答案

没有,没有。你将不得不继承形式,揭露具体事件,将表明当孩子添加,然后路线的子窗体通过方法的所有附件,将丝打子窗体,以及引发事件。

No, there is not. You would have to subclass Form and expose specific events that would indicate when the child is added and then route all attachments of child forms through a method that would wire up the child form, as well as raise the event.

这篇关于MDI窗体与子窗体检测添加或删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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