Dana Maria

Dana Maria

  • NA
  • 16
  • 10.7k

Mdi Parent and Child

Apr 3 2013 5:23 PM
Hello!
I have a Parent Form. From it i load another form, a normal form and from it a child form for the Parent form. My code sounds like this:

//this is the code from the intermediate form (normal form)
admpanel_form admform=new admpanel_form(); //this is the Parent form
vizualizare_form form1 = new vizualizare_form(); //this is the child form that i want to load in                                                                         admpanel_form
form1.MdiParent =admform; //setting the Parent admform for form1
form1.Show();

So it seems it is not working.
Please help me!

Answers (2)