Quantcast
Viewing all articles
Browse latest Browse all 27101

VS 2010 [RESOLVED] Isn't this how you SAVE settings after you change them?

Code:

    Private Function RunFolder(FolderToProcess As String) As Boolean
        Dim rtnStatus As Boolean = False
        My.Settings.Item("FolderToProcess") = FolderToProcess & "xxx"
        My.Settings.Save()
        MessageBox.Show("Folder has been processed: " & FolderToProcess)
        Return rtnStatus
    End Function
.
.
.
        Dim FolderToProcess As String = ""
        Try
            FolderToProcess = My.Settings.Item("FolderToProcess").ToString
        Catch ex As Exception
            ' no op
        End Try
        If FolderToProcess = "" Then
            StartRequests(prefixes)
        Else
            RunFolder(FolderToProcess)
            Me.Close()
        End If

Is this not how to SAVE a change to a setting - won't this physically write it out to the XML file that is behind that setting?

Viewing all articles
Browse latest Browse all 27101

Trending Articles