Posted 18 years ago by Rick - Developer, Visual Software Systems LLC
I like the default context menu but want to add to it. I can do this through code as follows:
When I run this code, the default context menu comes up with the additional items that I've added appearing at the bottom. However, the items in the original context menu become "inactive". Is there a way to add to the menu and keep the default functionality active? I'd really like to use the functionality that's already built-in rather than recoding it.
Dim mnu As ContextMenu With editor mnu = .GetDefaultContextMenu mnu.MenuItems.Add(New MenuItem("Menu Item 1")) mnu.MenuItems.Add(New MenuItem("Menu Item 2")) .ContextMenu = mnu End With