I should add that this is reproducable in VS2005 and VS2008. I'm targetting
the .Net 2.0.
> I am having problems merging menus in an MDI application. The parent menu
> contains 'open' and 'close' under the 'file' menu. The child menu should
[quoted text clipped - 140 lines]
> }
> }
Hi,
I performed a test based on your sample code and did reproduce the problem
on my side. When the MDI parent uses the ParentMenu and the MDI child form
uses the ChildMenu, the menu in the MDI child form isn't merged into that
in the MDI parent. However, when the MDI parent uses the MenuStrip and the
MDI child form uses the ChildMenu, the menu in the MDI child form can be
merged.
Beside, I have the following two findings:
If both the MDI parent and the MDI child form use the MenuStrip, the menu
in the MDI can be merged into that in the MDI parent;
If the MDI parent uses the ParentMenu and the MDI child form uses the
MenuStrip, the menu in the MDI child form cannot be merged into that in the
MDI parent.
From the above results we can draw a conclusion, i.e if the menu within an
MDI child form is the same type or a derived type of that within its MDI
parent, the menu in the MDI child form can be merged into that in the MDI
parent; otherwise, the menu in the MDI child form cannot be merged into the
menu in the MDI parent.
I think this behavior is by design.
If you have any question, please feel free to let me know.
Sincerely,
Linda Liu
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
mfr - 16 Jan 2008 08:54 GMT
I've now tried deriving the child menu from the parent menu and the merging
now works correctly.
Thank you for you comments.
> Hi,
>
[quoted text clipped - 47 lines]
>
> This posting is provided "AS IS" with no warranties, and confers no rights.