GUI应用 [英] GUI Application

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

问题描述



我正在开发一个应用程序,其中有一个包含splitcontainer的MDI父窗体,并且正在将此代码编写为在splitcontainer的panel2中打开一个MDI Child.

Form2 ob = new Form2;
f2.mdiparent = this;
splitcontainer.panel.control.add(f2);
f2.dock = dockstyle.fill;
f2.show();


现在,我必须找出多少个包含form1的mdi子级.

Hi,

I am working on an application in which i have a MDI Parent Form Which contains splitcontainer and am writing this code to opena MDI Child in splitcontainer''s panel2.

Form2 ob=new Form2;
f2.mdiparent=this;
splitcontainer.panel.control.add(f2);
f2.dock=dockstyle.fill;
f2.show();


now ihave to find out that how many mdi child containing form1.

推荐答案

您可以迭代拆分容器面板的控件集合并检查TypeOf形式?

不过,这只是一个猜测,还没有尝试过.
You could iterate the control collection for the split container''s panel and check for TypeOf form?

This is a guess though, haven''t tried it.


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

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