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.
Syncfusion Feedback

MainFrameBarManager.SaveBarState

Thread ID:

Created:

Updated:

Platform:

Replies:

24388 Feb 3,2005 08:16 AM UTC Feb 3,2005 04:41 PM UTC Windows Forms 1
loading
Tags: Tools
Krijn Michiels
Asked On February 3, 2005 08:16 AM UTC

Hi, It seems that the MainFrameBarManager.SaveBarState method does not save custom added toolbars to the AppState. Is this correct ? Thanks

Administrator [Syncfusion]
Replied On February 3, 2005 04:41 PM UTC

Hi Krijn, Saving the bar customization is handled by LoadBarCustomization and SaveBarCustomization. However, those methods are protected so you''ll need to extend MainFrameBarManager to access them. The following code snippet demonstrates this: public class CustomMainFrameBarManager : MainFrameBarManager { public CustomMainFrameBarManager () : base() { } public CustomMainFrameBarManager(Form f): base(f) { } public CustomMainFrameBarManager(IContainer c,Form f): base(c, f) { } public void LoadBarCustomization (AppStateSerializer serializer) { base.LoadCustomizationInfo(serializer); } public void SaveBarCustomization(AppStateSerializer serializer) { base.SaveCustomizationInfo(serializer); } } Regards, Gregory Austin Syncfusion, Inc.

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.

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

;