all groups > dotnet windows forms > october 2006 >
You're in the

dotnet windows forms

group:

ContextMenuStrip and submenus - virtual impossibility??? huh?


Re: ContextMenuStrip and submenus - virtual impossibility??? huh? Bill B
10/30/2006 11:49:17 AM
dotnet windows forms:
Are you using the VS 2005 designer? When you click on a menu item (at
the top level - i.e. Item 2), you should see a submenu item with "Type
Here" as the text.

If you want to do this programatically, you can via the
..MenuItems.Add() method of of the top level menu. See the link below
for more info:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskAddingContextMenusToForm.asp

Bill
ContextMenuStrip and submenus - virtual impossibility??? huh? Ron M. Newman
10/30/2006 2:04:28 PM
I have a context menu strip. I can Add elements to its "Items", but there is
nothing in there to add a sub context menu strip.

Menu
Item 1
Item 2
Sub Item 1 <-- impossible to add!

How do I achieve that? There seems no API's to do that and the internet is
simply "empty" when it comes to that. All newsgroups questions are
unanswered. Does. Are we witnessing the death of the sub-menu here?

Ron

AddThis Social Bookmark Button