Menu merging without MDI

When using MDI, you can merge menu and toolstrip (and taskbar?) items. Luvly.

But how should I go about creating a SDI application with muliple parent windows that have common items. For example 3 parent windows that inherit from a common base form. They all inherit "File -> Exit" and "Options -> Settings", but each have their own "File -> Print Report" etc.

It doesn't appear I can extend the menus in the derived forms (even though modifiers=protected). Do I have to (can I) add their extra menu items at runtime?

[532 byte] By [kab122] at [2007-12-16]
# 1
You can merge any two menus (any ToolStrip derivatives actuallly) manually via methods on ToolStripManager.

ToolStripManager.Merge(ToolStrip target, ToolStrip source)
ToolStripManager.RevertMerge(ToolStrip target, ToolStrip source)

Merging in this sense means following the merge actions and gives you access to revertmerge which effectively undoes the merge.

Hope this helps.

ErickEllis at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms General...