我在我的Settings
区域创建了一个名为DBUsername
的字符串,它是一个字符串,没有任何价值。
在我的代码中
Dim Setting As New My.MySettings
Private Sub saveButton_Click(sender As Object, e As EventArgs) Handles saveButton.Click
If TextBox1.Text <> "" Then
name = TextBox1.Text
Setting.DBUsername = name '(ERROR IN THIS LINE : the property DBUsername is Read Only )`
Setting.Save()
End If
End Sub