|
-
Oct 15th, 2011, 02:38 AM
#1
Thread Starter
Member
-
Oct 15th, 2011, 04:47 AM
#2
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?
-
Oct 16th, 2011, 01:00 AM
#3
Thread Starter
Member
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! 
Code:
childForm.MdiParent = ParentForm;
-
Oct 16th, 2011, 04:53 AM
#4
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
-
Oct 17th, 2011, 09:40 AM
#5
Thread Starter
Member
Re: [RESOLVED] set a mdi child form from another mdi child form
Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|