Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900