How to open mdi child form of another using vb?

How to open mdi child form from another with vb in main parent mdi?

+3
source share
2 answers

In the first MDI child, you can create an instance of the child MDI file secon, set the MdiParent of the second instance to the MdiParent of the first and show the child.

So, in the first child Mdi, the following code will show the second child MDI

Dim mdiChildForm As New MyMdiChild
mdiChildForm.MdiParent = Me.MdiParent 
mdiChildForm.Show()
+7
source

It will help u

Dim ChildForm As New System.Windows.Forms.Form
ChildForm.MdiParent = Me
m_ChildFormNumber += 1
ChildForm.Text = "Window " & m_ChildFormNumber
ChildForm.Show()
+2
source

Source: https://habr.com/ru/post/1744572/


All Articles