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.

MainFrameBarManager.SaveBarState

Thread ID:

Created:

Updated:

Platform:

Replies:

24388 Feb 3,2005 03:16 AM Feb 3,2005 11:41 AM Windows Forms 1
loading
Tags: Tools
Krijn Michiels
Asked On February 3, 2005 03:16 AM

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 11:41 AM

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.

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.

;