hi,
i have a mdi form named MDIParent2 in my application and it has many child forms.
child form 1 named frmClient has 3 child forms now i want to call them in MDIParent2.
can any one tell me how to i call sub child & sub - sub child forms in same parent form.

Recommended Answers

All 3 Replies

Upload a sample project demonstrating the behavior you are currently experiencing and how you would like it to work. I'm afraid I don't understand what you are asking.

Hello.
I'm not sure if this is what you're looking for, but to get array of child forms, you can use the MdiChildren property, e.g.:

this.MdiChildren[0].BackColor = Color.Black;

//and in same manner for sub - sub child forms
this.MdiChildren[0].MdiChildren[1].BackColor = Color.Black;

my problem solved with this code

form info = new frmclientinfo();
info.MDIParent = this.MDIParent;
info.Show();

May be its help anyone in future.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.