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.
Unfortunately, activation email could not send to your email. Please try again.


Thread ID:





195 Apr 24,2002 01:11 PM Apr 24,2002 02:47 PM Windows Forms 1
Tags: Tools
Richard Weeks
Asked On April 24, 2002 01:11 PM

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.

Administrator [Syncfusion]
Replied On 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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.