Click here to Skip to main content
15,888,139 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
What is the best way to create an inherited MDI form without duplicating the menu groups?

If you just inherit your MID_Children from your MID_Parent, your MDI_Children will have 2 menu groups. How to avoid that?
The reason for that is the fact that I have multiple applications that have the same MID features, but the menu has more items than the parent.

Has someone ever done that already?
Posted
Updated 25-May-11 4:09am
v2

1 solution

So are you trying to achieve:

             +--> MDI_Child
             |   
MDI_Parent --+--> MDI_Child
             |
             +--> MDI_Child
or
             +--> MDI_Child --> MDI_Child
             |   
MDI_Parent --+
             |
             +--> MDI_Child


?
 
Share this answer
 
Comments
Giulliano Rodrigues 27-May-11 8:36am    
Hi Yvan, I am trying the option two.
Yvan Rodrigues 27-May-11 9:20am    
And so you would like to know how you can make the inherited MDI_child have the menu items of the base class, plus its own items without duplicating the items from the base class?
Giulliano Rodrigues 27-May-11 9:35am    
You bet Yvan! This is exactly what I need to do.
Giulliano Rodrigues 27-May-11 9:38am    
I believe that "eventually" some manual intervention can be required in order to merge the parent menu with children one.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900