如何获得combobox中的项目数量?
如何获得combobox中列出的项目数?
尝试
var count = comboBox.Items.Count;
您应该引用Count
of Items
属性。
myComboBox.Items.Count
如何获得combobox中列出的项目数?
尝试
var count = comboBox.Items.Count;
您应该引用Count
of Items
属性。
myComboBox.Items.Count