Peter Duniho
10/22/2008 6:08:00 PM
On Wed, 22 Oct 2008 08:50:53 -0700, DoB <DoB@dob.com> wrote:
> [...]
> The another question is... where does the application save the settings?
> I thought it is done in the <appname>.settings file, but when I copied
> the
> executable to a new location, executed it and changed the settings, the
> config file was not created in the new directory. On the other hand, the
> settings were saved somewhere, because they were preserved between the
> application runs.
The settings are stored in the user's "Documents and Settings" store,
under the "Local Settings\Application Data" path. Each application will
have its own sub-directory there, containing individual folders for each
version of the application's user settings.
And yes, as you have found, only the user-level settings can be saved.
The application-level settings are read-only.
Binding the property as you did should have updated the settings, assuming
you were binding to a writeable setting of course. I've done just that
myself in the past and it works fine.
As far as posting code goes, it's not true that there's no code to post.
All of this is done in code. It is true that if you use the Designer to
set things up, then the bulk of the code will be found in the
*.Designer.cs file(s) for your program. But the code is in fact there.
Pete