title: Clear Listbox when datasource is set Visual Basic Net
body: <p>I have a listbox which has a datasource set and gets its content from an array. I tried to just do this code</p>
  
  <pre><code>Listbox1.Items.Clear()
  </code></pre>
  
  <p>Didn't work since the datasource is selected. I also tried stuff like</p>
  
  <pre><code>Listbox1.datasource = ""
  </code></pre>
  
  <p>Or something like <code>Listbox1.datasource = vbNULL</code></p>
  
  <p>etc. to make the datasource clean so I can remove all items from my listbox1</p>
  
  <p>How can I achieve it, I was browsing through all of Stack Overflows responses, none of them have worked for me</p>