Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Set Mdiparent from child form in c#
 

Set Mdiparent from child form in c#

hi,

My main form is frmMain(Mdi form)
Child form form1, form2

When i call form1 from Main form i set the mdi property
But i have to call form2 from form1 and have to close form1.

This time how to set mdi property to main form?
Kaleeswara Murthy  Sunday, May 24, 2009 5:33 PM
Hi,
You can simply set it as the follwoing.
frm2.MdiParent=this.MdiParent;

-- Thanks Ajith R [Remember to Mark as Answer if it is Helpful.]
Ajith R Nair  Sunday, May 24, 2009 6:09 PM
Hi,
You can simply set it as the follwoing.
frm2.MdiParent=this.MdiParent;

-- Thanks Ajith R [Remember to Mark as Answer if it is Helpful.]
Ajith R Nair  Sunday, May 24, 2009 6:09 PM
Hi,

Thanks for your reply
Kaleeswara Murthy  Monday, May 25, 2009 11:31 AM

You can use google to search for other answers

Custom Search

More Threads

• want to show date from Datetime picker
• User control problem with Visible and Enabled
• Web Applications are not able to run on Visual Studio??
• Drag and Drop Binding
• CollectionEditors & ComponentDesigners
• VS2005 Designer Question
• How do I put Symbols in Title bar
• DefaultValue attribute on a double property behaves inconsistently with Visual Studio property grid.
• Possible Bug with Windows Forms?
• any way to determine if a control is a "container"