G
Guest
Hello. I apologize for asking this question as the information I need is
availible via the MSDN library, however I cannot seemt o understand what I
need to do, so I'm asking here.
I have created application settings in Visual Studio (right-click on the
project, go to the settings tab, etc.) and have associated each of these
settings with a property on a form. This seems to be working right (i.e. if I
edit the default value of a setting, the setting on the form changes too, so
something must be working correctly).
I now want to save the settings to persist so that if the user opens the
program again, the same settings they had last time in each part of the forum
are still availible. How would I go about doing this?
The "how to" article in the MSDN implies that a seperate "Settings" object
has been created and that calling Settings.Save() in my closing method should
be sufficient. However, I cannot seem to access a Settings object within the
scope of my form. Do I need to create a wrapper class that extends
ApplicationSettingsBase, and if so, how would I go about doing this (the
article on ApplicationSettingsBase ha it applying to a form, however it
manually sets all the properties itself, and I'm guessing the form designer
does that automatically.
Thanks for your help,
Robert Fraser
availible via the MSDN library, however I cannot seemt o understand what I
need to do, so I'm asking here.
I have created application settings in Visual Studio (right-click on the
project, go to the settings tab, etc.) and have associated each of these
settings with a property on a form. This seems to be working right (i.e. if I
edit the default value of a setting, the setting on the form changes too, so
something must be working correctly).
I now want to save the settings to persist so that if the user opens the
program again, the same settings they had last time in each part of the forum
are still availible. How would I go about doing this?
The "how to" article in the MSDN implies that a seperate "Settings" object
has been created and that calling Settings.Save() in my closing method should
be sufficient. However, I cannot seem to access a Settings object within the
scope of my form. Do I need to create a wrapper class that extends
ApplicationSettingsBase, and if so, how would I go about doing this (the
article on ApplicationSettingsBase ha it applying to a form, however it
manually sets all the properties itself, and I'm guessing the form designer
does that automatically.
Thanks for your help,
Robert Fraser