PC Review


Reply
Thread Tools Rate Thread

ContextMenuStrip within another ToolStrip

 
 
Brian Erst
Guest
Posts: n/a
 
      4th Jan 2007
Does anyone know how to add a context menu to another menu?

I have a menu (ToolStripDropDownButton.DropDownItems) that gets
automatically populated by reading data from a configuration source. I
want the users to be able to remove items from that menu by
right-clicking on the menu item and selecting "Delete" from a context
menu.

As ToolStripItem (or ToolStripMenuItem) is not a Control, you cannot
associate a ContextMenuStrip with a tool strip item. I have searched in
vain trying to come up with a method to do this.

Microsoft uses this method itself (for instance, you can right-click
any menu item in the "Start" Menu and pop up a context menu for that
item), but that doesn't necessarily mean that .Net supports it.

If anyone has figured out how to do this, I'd appreciate a pointer.
Thanks!

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ContextMenuStrip ilda.cpp Microsoft Dot NET Framework Forms 1 6th Oct 2007 04:35 PM
ContextMenuStrip Alistair George Microsoft C# .NET 2 25th Sep 2007 10:50 PM
ContextMenuStrip with a ContextMenuStrip Child =?Utf-8?B?QnJhZA==?= Microsoft VB .NET 1 17th May 2007 07:42 PM
contextmenustrip Alan T Microsoft C# .NET 4 15th Jul 2006 12:09 PM
ContextMenuStrip tm Microsoft VB .NET 2 19th Feb 2006 03:43 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:30 PM.