Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
220
Recovering Settings in UltraDockManager
posted

Using the SaveSettings feature of UltraDockManager (installed from NetAdvantage_NET_20082_CLR20_Product.exe), I am able to save settings to the user.config file and recover them using LoadComponentSettings().  However, I can't load the default settings from app.config.  ResetComponentSettings() blows out the user settings, but LoadComponentSettings() does nothing after the Reset.  I assume that LoadComponentSettings is looking only in the user.config instead of defaulting back to app.config.  Is there some other way for me to do this?

Mike.

Parents
No Data
Reply
  • 44743
    posted

    Resetting the component settings just clears the saved data from the application settings. It does not switch to the default data so the next call to LoadComponentSettings loads default info. If you want to switch between multiple layout files, the best way would be to use the SaveAsXml or SaveAsBinary methods (and their corresponding LoadFromXml and LoadFromBinary methods). You can save one file when the application starts so you have a snapshot of the default settings. Then you can save the settings again when the application closes so you can load that after saving the default layout. To reset, just load back the default layout file.

Children