Rano AH

Rano AH

  • NA
  • 176
  • 111.7k

Properties.Settings

Sep 19 2013 3:24 AM

I have implemented a function to set some default settings for my application. Usually I call in form_load

However, I'm using also Properties.settings to save some customized setttings and if I click on save button, All my settings are being stored/saved in which I can load later when I press a nother button to load my settings.

My question. How it is possible to check if I have some stored/saved settings when I run my applicaton. So instead of having two buttons one for saving the settings and one for displaying the saved settings, I need simply my customized settings to be displayed when I run my application next time.

So. I implemented two functions:
FillDefault();
LoadCustomSetings();

in a form load, how it is possible to check if I have some saved settings so that my application will run the LoadCustomSettings(); and if there was no saved settings then my applicaiton will run FillDefault();

this is needed especially if I need to send this application to some other user, so he can see the default settings first time, and if he saved some custom settings the applicaiton will run the new settings next time by calling LoadCustomSettings();


Answers (8)