how to get count of items in listbox in c# code example Example: c# count items in listbox listBox1.Items.Count