AddOwnedForm method vs MdiParent property

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

Can someone tell me what is different purpose between AddOwnedForm method
and MdiParent property of Form class member?

Cheer,
KPH
 
From MSDN Documentation

When a form is owned by another form, it is minimized and closed with
the owner form. For example, if Form2 is owned by form Form1, if Form1
is closed or minimized, Form2 is also closed or minimized. Owned forms
are also never displayed behind their owner form. You can use owned
forms for windows such as find and replace windows, which should not be
displayed behind the owner form when the owner form is selected.

MDIParent property is used if you are creating a MDI child form.

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph
 
Back
Top