.NET custom form designer: How to implement IMenuCommandService?
- by jonny
I've got a report form designer written long ago for a database project. It used a lot of winapi magic hence i was forced to rewrite some parts 'in proper way'.
Thanks to some articles from MSDN magazine (here and here) and CodeProject i was able to implement designer surface, toolbox and undo/redo engine.
Every resource i discovered on the topic so far is a bit outdated. Can you point to fresh/comprehensive article?
Code from article mentioned above seems not working.
MenuCommandService.ShowContextMenu is called but nothing appears since there aren't any DesignerVerbs in globalVerbs collection. Should i add 'standard' ones, corresponded to designer actions such as cut/paste, manually? If yes, how can i accomplish this?