How to add menuitem to default TextBox ContextMenu

G

Guest

I would like to add a menu item to the textBox.ContextMenu so I could use
the default implementation of copy-paste and write handler just for my menu
item.

But I find that textBox.ContextMenu is null.

Is it possible to add to the default TextBox ContextMenu ?

I am using .NET 1.1

Thanks
 
S

simida

I am afraid that it is not to add MenuItem to the default TextBox
ContextMenu. The default TextBox ContextMenu is created by System, and
It will be enable when TextBox.ContextMenu is null. So, when you want
to customize ContextMenu, you have to Add new ContextMenu that
containing menuitems, and asign it to TextBox.ContextMenu property.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top