1
Reply

C# Windowsforms User Settings

Bart

Bart

18 years ago
2.9k
Hi,

I'm a real beginner and so have a beginners question :)

I read about the new feature in VS2005 concerning user settings and how easy it is to store and edit user settings in windows forms.
I used the designer to create some user-scoped "items".
I then used the "Applicationproperties" ==> PropertyBinding" in the designer.
I executed the program and checked the "programName".userName.exe.config-file and the fields were added.

Now how do I change these settings in an easy way ?
I read an article on http://www.codeguru.com/csharp/csharp/cs_data/xml/article.php/c11253/ but the example is in VB.

The most basic thing I'd like to do is save the windowstate when the form is closing and load this windowstate when I'm restarting the program and this for every different user individually.

So very plain and simple :
- how do I change the settings I bound with the designer
- how do I save them
- how do I reset the settings to the last saved state

Answers (1)
Next Recommended Forum