I have an MDI form with a Menustrip and the menus I want on all the child forms.
One of my child forms has 4 tabs and there is a different set of menus for each tab.
In VS 2003 I was able to create 4 menus and then do the following to switch them.
Private Overloads Sub UpdateControls()
SelectCaseTrue
CaseTabControl.SelectedPageIsEventsPage
Me.MenuStrip1
= EventMenuStrip
CaseTabControl.SelectedPageIsHistoryPage
Me.MenuStrip1
= HistoryMenuStrip
CaseTabControl.SelectedPageIsProjectsPage
Me.MenuStrip1
= ProjectMenuStrip
CaseTabControl.SelectedPageIsLeadsPage
Me.MenuStrip1
= LeadMenuStrip
EndSelect
End Sub
This doesn't work in Visual Studio 2012. Is there a way to do this in Visual Studio 2012?
Thank you,
-tim-