Yes, it is possible, but you should not do it. The result is ugly and
violates intended window usage.
Still want to see all the ugliness? OK, I can explain how.
First of all, the parent/child relationships between forms is done defunct. If you try to call the methods you have shown of assign
form1.Parent = form2
, exception will be thrown. You still can force such bad calls using the property
System.Windows.Forms.Form.TopLevel
— assign it to
false
for a form to be done a child. Please see:
http://msdn.microsoft.com/en-us/library/system.windows.forms.form.toplevel.aspx[
^].
Try it and see how it works, but
never do it for real applications — no one will say thank you for that. For children, use any other controls.
—SA