
Originally Posted by
kieth
I am very new to VB 2008 and MDi forms. I have found code that puts one child forminto a parent form. How do you had multipule child forms into the parent. Below is the code that I found:
Dim MDIChildForm As New Form2()
MDIChildForm.MdiParent = Me
MDIChildForm.Show()
Thanks
Kieth
Hi Kieth:
Code:
Dim MDIChildForm As New Form2()
references an instance of a form (MDIChildForm) and the name of the form (Form2)
Each child form you have will have a different name in the IDE; therefore, each instance will have a different name that you would assign to the form and a different reference to the form. If you have a form called frmLogon, Form2 would be replaced with frmLogon, etc.