Reputation: 25
I have a project i am working on that has something similar to a bookmark system and the entries are being saved in a Specialized.StringCollection in My.Settings.
Private Sub MainFormClosing(sender As Object, e As FormClosingEventArgs) Handles Me.FormClosing
My.Settings.comboitems.Clear()
For Each comboItem As Object In Me.ComboBox2.Items
My.Settings.ComboItems.Add(comboItem)
Next
My.Settings.Save()
End Sub
I can then reload the application later and it saves anything that i have put in that collection but if I am on another computer or overwrite the executable with an updated version, its all gone and I have to rebuild those collections from scratch.
Is there a way to export and import this string data so when new versions are ready for testing I can just import the data again without having to rebuild the list from scratch?
I hate having to bug but I have been googling and searching here for days to no avail.
Upvotes: 1
Views: 58