Groups | Blog | Home
all groups > dotnet windows forms controls > november 2006 >

dotnet windows forms controls : How to add an item to the Designer context menu?



Franky
11/30/2006 11:35:13 AM
I have a RichTextBox on my usercontrol

In the Designer if I right click the RichTextBox the context menu includes
the item "Edit Text Lines"

I'd love for myuser control to have that feature.

Any idea how to add an item to the context menu?




Thanks in advance for any help

Oliver Sturm
12/5/2006 5:47:34 PM
Hello,

[quoted text, click to view]

Have a look at this article:

http://msdn.microsoft.com/msdnmag/issues/03/12/CuttingEdge/

It explains the basics of extending the Visual Studio designer, and adding
entries to context menus ("verbs") is one of the possibilities. There's a
lot of other content on MSDN, if you want to find more information.


Oliver Sturm
--
Franky
12/6/2006 10:17:47 AM
thanks, I'll look at that now

[quoted text, click to view]

AddThis Social Bookmark Button