本文介绍了如何获得Active MDIChild对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我需要帮助,如何确定其他类中未与父级或子级链接的活动MDIChild objec?
我尝试使用以下代码,但pParent返回为NULL.
Hello,
I need help in how to determine an active MDIChild objec from other class which is not linked with niether Parent nor Child?
I have tried with below code, but pParent is return as NULL.
MDIParent pParent = MDIParent.ActiveForm as MDIParent;
if (pParent == null) return;
MDIChild pChild = pParent.ActiveMdiChild as MDIChild;
我是C#新手,所以在了解我要去哪里的地方时需要帮助.
感谢您的帮助.
I need help in knowing where I am going wrong here as I am new to C#.
Thanks for the help.
推荐答案
这篇关于如何获得Active MDIChild对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!