Reputation: 35532
How can I get the number of items listed in a combobox?
Upvotes: 22
Views: 90508
Reputation: 1
Variable_name_JComboBox.getComponentCount()
Upvotes: 0
Reputation: 1
comboBox.Items.Count;
Doesn't work for me.
I use :
comboBox->count();
Upvotes: 0
Reputation: 62397
You should reference Count
of the Items
property.
myComboBox.Items.Count
Upvotes: 21