mdi child of a child

G

Guest

how do you make all child forms part of the container?

the container opens the form and it is a child (stays withing the container)
but when the child opens a form it is free floating. is there a way to make
the child's child stay within the container?
 
H

Herfried K. Wagner [MVP]

oscar said:
how do you make all child forms part of the container?

the container opens the form and it is a child (stays withing the
container)
but when the child opens a form it is free floating. is there a way to
make
the child's child stay within the container?

\\\
Dim f As New FooForm()
f.MdiParent = Me.MdiParent
f.Show()
///
 
G

Guest

i forgot to put in that the form is being called as a frm.ShowDialog();

how do i make these forms part of the container form?

using:
frm.MdiParent = this.MdiParent;
frm.ShowDialog();

does not work, i get:
"Forms that are not top level forms cannot be displayed as a modal dialog.
Remove the form from any parent form before calling showDialog."

is there still a way to keep it in the container form?
 
H

Herfried K. Wagner [MVP]

oscar said:
i forgot to put in that the form is being called as a frm.ShowDialog();

how do i make these forms part of the container form?

That's not supported. MDI children represent a set of documents, so there
is no way to show one of them modally. I suggest to show the form modally
to the MDI container.
 
G

Guest

is there an easy way to simulate them being showdialog?

so they're always on top of their parent form but you can still interact
with the rest of the program?
 
G

Guest

is there a way to simulate it?

easiest way to keep the child form on top of the form it came from but a
user can still interact with the rest of the program?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top