Click here to Skip to main content
16,018,158 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
CSS
Hi friends!
This is my problem:
I'm working with 3 forms -

1. MDIparent
2. Child1
3. Child2

I can open Child1 and Child2 from MDIparent but cannot open Child2 from Child1 or Child1 from Child2.
What do I do? This is my set of codes on Child1.

Child2 cd2 = new Child2 { MdiParent = MDIparent, Visible = true };

Thank you.
Posted

1 solution

Try this, say to open child2 from child1, in child1:
VB
child2 = new child2();
child2.MdiParent = this.MdiParent;
child2.Show();

However, you may want to read this: MDI vs SDI[^]
 
Share this answer
 
v4
Comments
Salisu Shaibu 27-May-14 11:27am    
Mr. U're good.
Thank you very much.
Peter Leow 27-May-14 12:48pm    
You are welcome.

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