How to add menuitem to default TextBox ContextMenu

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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.
 
Back
Top