Microsoft Communities

Welcome to WindowsClient.net | Sign in | Join

Here are some frequently asked questions about Windows Forms and their answers.

Windows Forms FAQs

How do I clear the contents of a ListBox?

You have to access the Items of the ListBox using the Items property and clear (or otherwise operate on the items) these.

listBox1.Items.Clear();

Contributed from George Shepherd's Windows Forms FAQ



Page view counter