Today I created an application in which the user can create an image with the background color and the name chosen by him. But now I am faced with this problem: when I try to save the settings (My.settings.bgcolor.save ()), it saves the color, but I can not see it in the WPF Project β Settings (it does not appear there and it does not appear in the settings .setting, but the application loads the new content). Any ideas?
Code as requested:
If (site.Text <> Nothing And num_tile.Text <> Nothing And cul <> Nothing) Then My.Settings.shortcuts_bgcolor.Add(cul) My.Settings.shortcuts_name.Add(num_tile.Text) My.Settings.shortcuts_website.Add(site.Text) Dim i As Integer = 0 For Each shc As String In My.Settings.shortcuts_name MsgBox(My.Settings.shortcuts_name(i), MsgBoxStyle.Information) i += 1 Next Dim window As MainWindow = New MainWindow window.IncarcaButoane() Me.Close() End If End Sub Private Sub Window_Closing(sender As System.Object, e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing My.Settings.Save() End Sub Private Sub Window_Closed(sender As System.Object, e As System.EventArgs) Handles MyBase.Closed My.Settings.Save() End Sub
source share