ComponentOne Menus and Toolbars for WinForms
Merging Menu Items
Menus and Toolbars for WinForms Task-Based Help > Menu Tasks > Merging Menu Items

To merge the links from the current menu with the links in the child form's menu, use the MergeCommandLinks method:

To write code in Visual Basic

Visual Basic
Copy Code
Me.c1CommandHolder1.MergeCommandLinks(Me.c1MainMenu1.CommandLinks, Me.c1MainMenu1.CommandLinks,
_form2.c1MainMenu1.CommandLinks)

To write code in C#

C#
Copy Code
this.c1CommandHolder1.MergeCommandLinks(this.c1MainMenu1.CommandLinks, this.c1MainMenu1.CommandLinks, 
_form2.c1MainMenu1.CommandLinks);
See Also