Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Merging multiple child menus with MDI MenuStrip

$
0
0

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-


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>