views:

1046

answers:

2

Hello,

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

+5  A: 

You should reference Count of the Items property.

myComboBox.Items.Count
Jeff Yates
+8  A: 

Try

var count = comboBox.Items.Count;
JaredPar