locked
Application Settings User Scope RRS feed

  • Question

  • I need to store some string values in Application Setting, User Scope. These values will be changed by user runtime.

    The problem is in VB 2005 Express, whenever I set these values, it is there only when the application runs and when the Application is closed and restarted the values changes to DefaultSettingValueAttribute which is empty.string.

    I don't know how to avoid this, and persist my user values in these settings.

    Sunday, November 20, 2005 4:41 AM

Answers

  • I found the answer. Have to call save to persist the value, like this

    With My.Settings
    .settingsItem= value
    .Save()
    End With

    Sunday, November 20, 2005 8:24 PM