C# – How to get the number of items in a combobox

.netc++comboboxwinforms

How can I get the number of items listed in a combobox?

Best Solution

Try

var count = comboBox.Items.Count;