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.

Merging menu items across inherited forms

Thread ID:

Created:

Updated:

Platform:

Replies:

13979 May 14,2004 12:16 PM May 19,2004 02:12 PM General Discussion 2
loading
Tags: General Discussion
Jay Cincotta
Asked On May 14, 2004 12:16 PM

Hi, I''m building an MDI application that uses visual inheritance both for the main form and the child forms. Thus, MainForm derives from MainFormBase and LinkedViewForm derives from DockingForm. I''m having trouble merging menu items. My main menu (defined in MainFormBase) includes a Windows menu. I''ve defined an equivalent Windows Menu in DockingForm and placed a couple bar items on it which I''d like to have merged at run-time. I''ve verified that merge order , Text and ID match and have tried setting the MergeType properties to Add and also to MergeItems. Unfortunately, no matter what I''ve tried, I can''t seem to have my the Window bar items I defined in DockingForm (the base client form) show up in the Windows menu at run-time. Any suggestions? Thanks, Jay Cincotta

Jay Cincotta
Replied On May 14, 2004 12:54 PM

some more information... I can see the menu items at run-time in the customization dialog and if I add them to the menu at run-time, my persisted menu configuration is saved and correctly restored in future sessions. What I have yet to do is figure out how to have those items appear in the menu by default when a user first runs the application. I simulate this by deleting my isolated storage file. Thanks in advance, Jay

Jay Cincotta
Replied On May 19, 2004 02:12 PM

Stupid me, my problem was that I''d neglected to set the IsMainMenu option on my child menu bar. Hence, it didn''t merge with the main menu bar in my MDI container.

CONFIRMATION

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.

;