c# windows forms listbox clear code example Example: how to clear a listbox c# listbox1.Items.Clear();