Regarding User settings file location

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Robert Dufour

    #1

    Regarding User settings file location

    Changing a setting in the UserSettings from within my app using code (Vs2005
    vb.net) does not seem to persist changes to the myapp.exe.confi g file what
    is the location and name of the file where the usersettings are persisted?

    Is there any way to have modifications made in code to application level
    settings? The my.settings in VS2005 and vb.net 2005 does not permit
    application level settings to be modified in code cause the geniuses at MS
    decided to make that section readonly.

    Thanks for any help


  • Robert Schneider

    #2
    Re: Regarding User settings file location

    "Robert Dufour" <bdufour@sgiims .comschrieb im Newsbeitrag
    news:e6gZQKEtHH A.1188@TK2MSFTN GP04.phx.gbl...
    Changing a setting in the UserSettings from within my app using code
    (Vs2005 vb.net) does not seem to persist changes to the myapp.exe.confi g
    file what is the location and name of the file where the usersettings are
    persisted?
    On Vista the user.config file with the user settings is somewhere in the
    folder c:\users\george wbush\AppData\L ocal\wargame\.. .\...

    The read-only application settings are stored in the folder where the exe is
    (wargame.exe.co nfig).

    Settings can be persist with My.Settings.Sav e.

    Is there any way to have modifications made in code to application level
    settings? The my.settings in VS2005 and vb.net 2005 does not permit
    application level settings to be modified in code cause the geniuses at MS
    decided to make that section readonly.
    >
    The config file for the application settings is just XML. You can change it
    if you would like to. However, it is not the intention to change the
    application settings. Consider several users working on a machine with their
    own user accounts in Windows. If you would change the application settings
    then you would change it for all users. When the users start the app next
    time some of them may be surprised that something has changed even they
    haven't done anything. And then user x resets the setting and we have the
    next surprise.

    Robert

    --
    e-mail: r_.s_chnei_der\ wein_gart_ner.c om (remove all '_' and replace '\'
    with
    '@')


    Comment

    Working...