title: My.Settings.save issue in Visual Basic
body: <p>i hvave created a string in my <code>Settings</code> area called <code>DBUsername</code> , it is a string , there is no value.</p>
  
  <p>in my code I have </p>
  
  <pre><code>    Dim Setting As New My.MySettings
  Private Sub saveButton_Click(sender As Object, e As EventArgs) Handles saveButton.Click
  
      If TextBox1.Text &lt;&gt; "" Then
          name = TextBox1.Text
          Setting.DBUsername = name '(ERROR IN THIS LINE : the property DBUsername  is Read Only )`
          Setting.Save()
      End If
  End Sub
  </code></pre>