Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Open a MDI child form from another child form

$
0
0

Hi,

 

When I am trying to open a child form from another child form, nothing is showing up.  My code is like this:

 

1.    Dim Child1 As New frmChild1

2.    Child1.MDIParent = frmMDI 

3.    Child1.Show()

 

If I remove the line 2, the frmChild1 is opening outside the MDI form.  But I want a child form instead of modal form.  In VB6, I can simply run the following code to accomplish this task:

 

Load frmChild1

frmChild1.Show

 

Please help.  Thanks


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>