[RESOLVED] set a mdi child form from another mdi child form
Hi :wave:
Im opening a mdi child form to the mdi container form
and in that child form the user can select a number of pictures
and from that child form I want to open the pictures in a nother child form that shows the image.
But I cant get it to be a child to the mdi container form??
Code:
ChildForm frm = new ChildForm();
ChildForm.Parent = This; // Here its always This maybe heres my problem??
Can anyone help me with this please? I think Im going nuts... :eek:
Re: set a mdi child form from another mdi child form
Think about it. You want the new form to have the same parent as the current form, right? How did you set the current form's parent in the first place? You assigned the appropriate form to its MdiParent property, right? So, where do you think you should get its parent from?
Re: set a mdi child form from another mdi child form
Thanks :)
Took me a few hours and I can't believe I dident get it! :confused:
Code:
childForm.MdiParent = ParentForm;
Re: [RESOLVED] set a mdi child form from another mdi child form
That's still not it. It's simply:
csharp Code:
newForm.MdiParent = this.MdiParent
Re: [RESOLVED] set a mdi child form from another mdi child form