You have to access the Items of the ListBox using the Items property and clear (or otherwise operate on the items) these.
this.lb1.Items.Clear();
You have to access the Items of the ListBox using the Items property and clear (or otherwise operate on the items) these.
this.lb1.Items.Clear();
Share with