Can I display a modal dialog form with mdiparent?

  • Thread starter Thread starter VM
  • Start date Start date
V

VM

Is it possible to display a form as a modal dialog box where it's is not a
top-level form? If I include it as a top-level form, I won't be able to
access all the MDI children through it (by using this.MdiParent.MdiChildren
from within the form).

Thanks.
 
VM said:
[...] I won't be able to access all the MDI children
through it (by using this.MdiParent.MdiChildren
from within the form).

Well, why not pass a reference to the MDI parent form to the
constructor of the modal form?

P.
 
Back
Top