We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

XPMenus

How do I programaticaly add ParentBarItem(s) to an exiting Bar such as a Menu bar? I've attached a sample app that tries to accomplish this.

1 Reply

AD Administrator Syncfusion Team April 24, 2002 02:47 PM

Modifying the Main-Menu programatically is different from other toolbars because the Main-Menu is a merged menu (of all the MDI Children, if there is any). This merged main-menu bar is exposed in the MainFrameBarManager and you should modify it to modify the main-menu. Modifying the original Bar will not work. Do this in your code: this.mainFrameBarManager1.mainMenuBar.Items.Add( edit ); The mainMenuBar field will be made a property and better documented in the final release. We apologize for the inconvenience. -Praveen

Loader.
Live Chat Icon For mobile
Up arrow icon