Live Chat Icon For mobile
Live Chat Icon

How do you clear the contents of a list box?

Platform: WinForms| Category: from MFC

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