How can I save listbox items to my.settings
<p><strong>Intro</strong></p>

<p>I have looked up how to save the items in a listbox to my.settings for a while now and there are so many different answers. I've tried them all (a bit excessively to say), but none have really worked. Its probably because I'm doing something wrong due to a bad explanation or my new-beginner stage at programming.</p>

<p>So I have a form where the user can set a bunch of settings. All of them are going to stay the way they were when he closes the application and re-opens it again. Textboxes, checkboxes and so on works fine, but for some reason the Listbox is harder than I'd expect to be saved.</p>

<p><strong>My listbox</strong></p>

<p>The user adds items to the listbox like this (Writes something like <code>c:\test</code> in a textbox <code>tbpath1</code>, presses a button <code>btnAdd1</code> and the text will become a item in the listbox <code>lbchannel1</code>)</p>

<pre><code>Private Sub btnAdd1_Click(sender As Object, e As EventArgs) Handles btnAdd1.Click
    Dim str As String = tbPath1.Text
    If str.Contains("\") Then
        lbchannel1.Items.AddRange(tbPath1.Text.Split(vbNewLine))
        tbext1_1.Text = (tbext1_1.Text)
</code></pre>

<p><strong>My attempt</strong> <em>(probably one out of ten attempts)</em></p>

<p>So this is one of my attempts so far. I wish it was this easy.</p>

<p><a href="https://i.stack.imgur.com/F72cN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/F72cN.png" alt="enter image description here"></a></p>

<pre><code>My.Settings._lbchannel1.Clear()
For Each item In lbchannel1.Items
    My.Settings._lbchannel1.Add(item)
Next
My.Settings.Save()
</code></pre>

<p>At the attempt above, I get error <code>'NullReferenceException was unhandled : Object reference not set to an object instance'</code></p>

<p>I'm guessing it has something to do with items not being a string and so on, but I'm not sure where to go with this. Can someone wrap it up in a simple explained way?</p>