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

XPMenus & MDI Forms

Thread ID:





26439 Mar 23,2005 01:44 AM UTC Mar 23,2005 07:36 PM UTC WinForms 3
Tags: Tools
Lori S. Pearsall
Asked On March 23, 2005 01:44 AM UTC

I have an MDI application that can display two types of forms - I''ll call them ChildA & ChildB. ChildA & ChildB have some toolbars that are, by default, not set to be visible. However, I allow menu customization so the user can turn them on. My issue is that when ChildA is the active window, ChildB''s toolbars are visible but empty (not buttons). I''ve done WriteLine''s and I can''t find any property on either the MDI parent or the child forms that indicate that these child toolbars are visible. I even look at bar.BarStyle and it doesn''t have the BarStyle.Visible bit set when the toolbars added via user customization ARE ACTUALLY visible. So, basically, I''d like to make ChildB''s toolbars invisible when ChildA is the active form and vice versa. How do I do this??

Administrator [Syncfusion]
Replied On March 23, 2005 04:03 PM UTC

Hi Lori, The Bar class is not a true Control, so it doesn''t have information on it''s display state. To access the Control that corresponds to a Bar, please use MainFrameBarManager.GetBarControl(). This method will return a Control that will have various properties that allow you to detect and modify it''s appearance, including the Visible property you''re looking for. Regards, Gregory Austin Syncfusion Inc.

Lori S. Pearsall
Replied On March 23, 2005 07:02 PM UTC

Hi Gregory, Thanks for the info. The Visible property and the SetBarVisibility method not only controls whether the bar is currently visible, it also affects the persisted state as well. Is there a separate property that tells me what the current persisted state is that wouldn''t be affected by me setting Visible on and off? Or, is that something that I''ll need to record myself? Also, there seems to be a lot of methods and properties that aren''t documented in the Class Reference document regarding XPMenus!! (I using Version

Administrator [Syncfusion]
Replied On March 23, 2005 07:36 PM UTC

Hi Lori, XPMenus has limited support for directly controlling the persistance of customization information. Keeping track of the information yourself would be the best course of action. Regarding the documentation, we''re in the process of improving it and expect to have it ready for the next release. Regards, Gregory Austin Syncfusion Inc.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon