Application setting can be user-scoped or application-scoped. The user scoped one can be read and write at runtime.For example, assign value Variabl1 to a user-scoped application setting will be like the following
VB:
My.Settings.Sample=Variable1
C#:
Properties.Settings.Default.Sample=Variable1;
Properties.Settings.Default.Upgrade();
Properties.Settings.Default.Save();
The user.config file will be stored against the logged in user,
Windows XP:
C:\Documents and Settings\username\Local Settings\Application Data\companyname\Applicationname\application.exe$%^&*1.1.0.0
Vista:
C:\Users\username\AppData\Local\ApplicationName\application.exe@#$%^\1.1.0.0