Menu inheritance for forms

I'd like my base form to have some common items on its menu, like File->Close, Help->About, and possibly the common edit items. Then on derived menus, I'd loke to be able to add appropriate other items, like Export, Load, Save, what have you.

Is this possible in .net with WinForms. It looks like when you inherit a form, the parent settings get cast in stone.

Mike


Answer this question

Menu inheritance for forms

  • borix69

    It's working great for me.. I create a Form1 and drag dropped a MainMenu, inserted a few item and then created a Form2 that inherits from Form1 and it has the menu.

    I think the problem after that is that you will have to programaticaly add menu item yourself.



  • Jurgen Willis

    [last post]

    you will have to programaticaly add menu item yourself.

    That mean you will have to code it yourself, creating the new MenuItem, ect...

  • Homer Y

    Yes, the menu shows up on the inherited window. I just can't modify it in the Forms designer. That's what I want to do.

  • Menu inheritance for forms