0

I have two forms named form1 and form2 respectively.
And a MDI form named mdi1.
I want to open form2 as a child of mdi1 when a button on form1 is clicked.
How can I do this please help me.

2
Contributors
1
Reply
4
Views
8 Years
Discussion Span
Last Post by k.d.m
0

Add this code inside the button click event

form2 frm2=new form2();
frm2.MdiParent = mdi1.ActiveForm;
frm.Show();

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.