Search code examples
c#.netwinformscombobox

How to get the number of items in a combobox?


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


Solution

  • Try

    var count = comboBox.Items.Count;