View Single Post
  #1 (permalink)  
Old 11-28-2008, 1:24 PM
Zexor's Avatar
Zexor Zexor is offline
VB.NET Forum Enthusiast
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Nov 2008
Posts: 87
Reputation: 19
Zexor is on a distinguished programming path ahead
Question How to Merge 2 ContextMenuStrips?

I have 2 ContextMenuStrips already created. cmsMenu1 and cmsMenu2. Is there a way to make a cmsMenu3 that is cmsMenu1 + cmsMenu2?

I know i can do this with a dropdown menu

Code:
cmsMenu3.Items.Clear()
cmsMenu3.Items.Add("Menu 1")
DirectCast(cmsMenu3.Items(0), ToolStripMenuItem).DropDown = cmsMenu1
cmsMenu3.Items.Add("Menu 2")
DirectCast(cmsMenu3.Items(1), ToolStripMenuItem).DropDown = cmsMenu2
but can it be done without the dropdown and have both cmsMenu1 and cmsMenu2 straight down in the first level?

Last edited by Zexor; 11-28-2008 at 8:15 PM.
Reply With Quote