Groups | Blog | Home
all groups > visual studio .net general > january 2005 >

visual studio .net general : Visual Studio 2005's client/application settings...



martin.lundberg NO[at]SPAM gmail.com
1/7/2005 6:24:29 AM
Hello!

(If this is the wrong place to ask this, maybe there's a Whidbey or VS
2005 newsgroup somewhere, please direct me to the right place)

I've been trying to figure out how to work with the VS 2005
client/application settings but I can't make it work.

I can go to the project properties and choose the settings tab where I
can enter different settings. But I can't change it att runtime.

If someone could be nice enough to give me an code example of how I
could enter a setting, change it at runtime and save it, I would be
very grateful!

Thanks in advanced!
Stenis
1/8/2005 11:37:01 PM
Are the settings application scoped or user scoped? If they are application
scoped, they are read-only (the reason for this is because the settings are
backed by the application.exe.config file which is read-only for normal users
whereas user scoped settings are backed by a file that is located under the
current user's documents folder)

- Stenis

[quoted text, click to view]
Lundberg
1/9/2005 11:35:56 AM
Hello! =)

I found this out myself just today. I had them application scoped. I've
tested with user scoped and it works. I'm just wondering, in the
documentation the say that most application settings (those application
scoped) are read-only, most. Is there a way then to write to them and
save?

Thanks for the answer anyway! =)
Stenis
1/9/2005 1:35:02 PM
It is possible to write your own settings provider to provide this
functionality, but there is no built-in support for persisting application
scoped settings in your application.

- Stenis

[quoted text, click to view]
Lundberg
1/9/2005 9:04:27 PM
Okey ;) Thanks!
AddThis Social Bookmark Button