MDI Menu merge not working

Has anyone had any success menu merging with the toolstripmenuitem in an MDI app?

There doesn't seem to be any way to merge without duplicating menu items in the child menu.

eg:
Parent:
File
->New
->-
->Exit

Child:
File
->Save

Results in (at best!):
->New
->-
->Exit
->Save

Plus, if there's multiple child windows, the inactive windows display the child's menu. When they regain focus the menu disappears, when they lose focus it reappears.

Thanks,
R.

[541 byte] By [ReeceWilliams] at [2007-12-17]
# 1
I got the answer to this from MS.
The merge index is now the actual (zero based) index of the menu item in the parent's collection, not some arbitrary value as before.
The Target menu settings are irrelevant - the child menu settings always take effect.
From my example:
->New
->-
->Exit

Child:
File -- Match
->Save -- Insert, 1

...works correctly.

ReeceWilliams at 2007-9-8 > top of Msdn Tech,Visual C#,Visual C# General...
# 2

I did this and my menus merge but the Parent Menu items are still in the child form. Any ideas?

MichaelHamling at 2007-9-8 > top of Msdn Tech,Visual C#,Visual C# General...
# 3
I read on MSDN forum that they expect you to set the menustrip.Visible = false.

This works but I think this is a cheesy solution.

MichaelHamling at 2007-9-8 > top of Msdn Tech,Visual C#,Visual C# General...
# 4
Hi, guys!

I think that your problem will be solved using MergeOrder of the menu items.
E.g. for your example you should to set merge orders like that:

Parent: MergeOrder
File
->New 5
->- 10
->Exit 15

Child: MergeOrder
File
->Save 6 (any from 6 to 9)

Results will be : resulting Order of Merge
->New 5
->Save 6
->- 10
->Exit 15

I hope the scheme is clear. These order numbers (5, 10 and 15) are for easy adding new menu items. The best step I think is about 10 positions.

Good luck!

DmitryPavlov at 2007-9-8 > top of Msdn Tech,Visual C#,Visual C# General...
# 5
thanks for the suggestion, but this doesn't produce the right results either. I think the MergeAction has something to do with it but I'm not sure how.
Dmano at 2007-9-8 > top of Msdn Tech,Visual C#,Visual C# General...