Как скрыть или увидеть ложный элемент из поля со списком в форме окна c #? Я попробовал этот код в событии selectedIndexChange
Switch (myComboBox.selectedIndex) { Case 0: Visible=false; break; }
Чтобы скрыть элемент в ComboBox
// keep the items in a list List<string> list = new List<string>(); list.Add("city"); // remove them from combobox comboBox1.Items.Remove("city"); // if you want to add them again. comboBox1.Items.Add(list[0]);