I'm currently writing a property extender using IExtenderProvider which
provides a bool property that when set to true, among other things, will
attach a ContextMenu to the Control. I can easily add a new ContextMenu,
however I would prefer to simply expand upon the default ContextMenu
available to Controls such as the default one on a TextBox control with
the 'Copy', 'Cut', and 'Paste' items. The problem I run into is that
when I attempt to access the ContextMenu as-is, it throws a null
reference.

Does anyone know if this default ContextMenu is accessible somehow or if
I need to recreate the whole thing to then add the custom item?

Thanks,
Greg

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to