I have two WinForms. A frmMainMenu
and a frmIndividual
with frmIndividual
a child of frmMainMenu
. Each window has its own MenuStrip
in the designer. However at runtime, the child menu does not appear to have a menu strip.
Here is the code creating the child. (It's literally the templated MDI script but modded.)
Private Sub IndividualToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles IndividualPlayerToolStripMenuItem.Click
Dim ChildForm As New frmIndividual
' Make it a child of this MDI form before showing it.
ChildForm.MdiParent = Me
m_ChildFormNumber = 1
ChildForm.Text = "(" & m_ChildFormNumber & ") " & ChildForm.Text
ChildForm.Show()
End Sub
I doubled over the follow two questions/answers: