Please tell me how to open another child form inside one form when I click the menu item. I want in my small project when selecting the menu item Form1 another form Form2 was opened inside Form1. Show the code.

  • It is better to immediately place Form2 hidden on Form1, and just make it visible by the button. - Akina
  • And there is another option. for example, there are MDI parent or Children properties; I just could not use them - DilnozaIsoboeva
  • There is, how not to be ... I just offer the easiest way to implement IMHO. - Akina

1 answer 1

Dim NewMDIChild As New yourchildformname() 'установить Parent форму (текущая) NewMDIChild.MdiParent = Me 'Вызов дочерней формы NewMDIChild.Show()