开发者

How to open a MDI child form using a MenuList on the main MDI parent form

开发者 https://www.devze.com 2023-02-08 16:48 出处:网络
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

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()
0

精彩评论

暂无评论...
验证码 换一张
取 消