I have a ListBox control that is being populated in code (from a SQL query).
How do I set the selected items to an ArrayList?
Protected Sub btnGo_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnGo.Click
Dim arrBrand As ArrayList
For Each item As ListItem In lstBxBrand.Items
If item.Selected = True Then
This is giving me a "Object reference not set to an instance of an object", on: