How to open a MDI child form using a MenuList on the main MDI parent form
I have a MDI Parent form created with a MenuList, I a开发者_Go百科lso have the MDI child form created... how do I go about using the MenuList to open the MDI child form within the parent form?
I ended up added within the event this code:
'Create a new instance of Form2
Dim NewMDIChild As New frmProductMaintenance()
'Set the parent of the MDI child form.
NewMDIChild.MdiParent = Me
'Display the new form.
NewMDIChild.Show()
精彩评论