1

enter image description here

I want to add a "Dock" option here in the menu. I've seen a lot of posts on how to override those options but first, i have to add my new item there and after that, define the functionality for it.

Olaru Mircea
  • 2,570
  • 26
  • 49
  • Did you see any examples of such functionality? – Tarec Jul 24 '14 at 07:58
  • 2
    Where you looking for something like [Manipulating the System Menu Using C#](http://www.codeguru.com/csharp/csharp/cs_misc/userinterface/article.php/c9327/Manipulating-the-System-Menu-Using-C.htm) – Adriaan Stander Jul 24 '14 at 08:02
  • @astander, it works fine, but if i try to set an MdiParent for this window, it docks as it should but the new property set on the menu vanishes and i can't undock it. strange thing. once set, how come it disappears? – Olaru Mircea Jul 24 '14 at 11:36

1 Answers1

2

You need to override the ContextMenu property of the control you want to add the option to.

http://msdn.microsoft.com/en-us/library/aa984254(v=vs.71).aspx is the MSDN article that explains how you can do this. it's doable both in the design mode and the code-behind.

Nzall
  • 3,439
  • 5
  • 29
  • 59