How to get the number of items in a combobox?
Try
var count = comboBox.Items.Count;
You should reference Count
of the Items
property.
myComboBox.Items.Count
Try
var count = comboBox.Items.Count;
You should reference Count
of the Items
property.
myComboBox.Items.Count