Category / Section
How to perform menu merging operation between docking windows in MDI child form and the main form in WinForms Docking Manager?
1 min read
Merging operation between two docking windows
For doing this the XPMenu has to be hosted on a main form. The ChildFrameBarManager and other menu components in the docking window has to be merged with the main form's menus after a state transition into MDI child form. then they have to be registered with the main form's MainFrameBarManager to perform menu merging. Please refer the below code snippet which illustrates this:
C#
this.mainFrameBarManager1.RegisterMdiChildTypes(new Type[] { typeof(Form2) });
VB
Me.MainFrameBarManager1.RegisterMdiChildTypes(New Type() {GetType(Form2)})
Reference links: