.NET custom form designer: How to implement IMenuCommandService?

Posted by jonny on Stack Overflow See other posts from Stack Overflow or by jonny
Published on 2009-05-20T16:06:34Z Indexed on 2010/03/20 21:41 UTC
Read the original article Hit count: 416

Filed under:
|
|
|

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.

  1. Every resource i discovered on the topic so far is a bit outdated. Can you point to fresh/comprehensive article?

  2. 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?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .net-2.0