You can use combination of Save()
and Reload()
methods to store your data.
When user clicks on Save button, you can iterate your ListView adding content ListView.Items[n]
to collection of names and content of sub-item (ListViewItem.SubItems[0]
) to collection of scores. Then, use My.Settings.Save()
to save your data. To have your data back in ListView
after start, use My.Settings.Reload()
(in for example Form.Load
event) and iterate it back. Here's an example of saving iteration (not tested):
For Each it0 in lstscores.Items
My.Settings.settingname.Add(it0.Text)
My.Settings.settingscore.Add(it0.SubItems[0].Text)
Next
My.Settings.Save()