J
Jeff Roush
I'm trying to use the User.config file to save a form's size and position.
According to the documentation, the application is supposed to produce a
user.config file and save any settings with user scope to that file . but
that file doesn't seem to be being produced.
I've defined one setting, Location, under "ApplicationSettings" in VS 2005's
Properties window for the form in question, and bound it to the form's
Location property. I was careful to give the Location setting a scope of
"User". I check in the Settings tab of the project's properties window, and
I do in fact see the Location setting, and it does have a scope of "User".
When I run the program, the form does appear at the default location I
specified in the setting. But if I move the form and close it, it always
reappears in its original default location.
After running the program, I see an application.exe.config file, which does
contain the default Location property. But there is no user.config file.
Is there some reason why the user.config file might not be created
automatically?
According to the documentation, the application is supposed to produce a
user.config file and save any settings with user scope to that file . but
that file doesn't seem to be being produced.
I've defined one setting, Location, under "ApplicationSettings" in VS 2005's
Properties window for the form in question, and bound it to the form's
Location property. I was careful to give the Location setting a scope of
"User". I check in the Settings tab of the project's properties window, and
I do in fact see the Location setting, and it does have a scope of "User".
When I run the program, the form does appear at the default location I
specified in the setting. But if I move the form and close it, it always
reappears in its original default location.
After running the program, I see an application.exe.config file, which does
contain the default Location property. But there is no user.config file.
Is there some reason why the user.config file might not be created
automatically?