Combo Box Size Issue After All Items Are Removed
问题 My application contains a ComboBox that the user can delete items from. When the program starts up it populates the ComboBox from a list of strings read in from a configuration file. Here is the code to add items: // version list is an array of strings foreach (string version in versionList) { versionComboBox.Items.Add(version); } if (versionComboBox.Items.Count > 0) { versionComboBox.SelectedIndex = 0; } Here is a screenshot of the combo box after it's been populated: If the user clicks the