MDI OPen Child form from other child form

G

Guest

I am using VB.NET and trying to open an MDI Child form from another MDI Child
form. Am using on the Child1 click event but the Child2 isn't opening:

Dim Child1 As New frmchild2
Dim mdi1 As New frmparent
mdi1.IsMdiContainer = True
Child1.MdiParent = mdi1
Child1.Show()

Thanks,
-Kent
 
H

Herfried K. Wagner [MVP]

KentG said:
I am using VB.NET and trying to open an MDI Child form from another MDI
Child
form. Am using on the Child1 click event but the Child2 isn't opening:

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

MDI containers cannot contain MDI containers.
 
G

Guest

That worked. I could have sworn I tried that...but obviously not.

Thank you very much.
 

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