|
-
July 13th, 2010, 04:29 AM
#1
mdi child Form question
in my application i have main form whose mdicontainer property is true
i open aform as its child form by typing
Form frmchild=new Form();
frmchild.MDIParent=this;
frmchild.Show();
from this form i open another form. how can i make this new form as child form of main form which is mdi container
Form frmchild_new=new Form();
frmchild_new.MDIParent=???????/;
frmchild_new.Show();
Regards,
gfaryd
-
July 13th, 2010, 07:15 AM
#2
Re: mdi child Form question
try
Code:
frmchild_new.MDIParent = frmChild.Parent;
//or if you are opening frmchild_new in frmchild
frmchild_new.MDIParent = this.Parent;
Tags for this Thread
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
|