I want to add and remove items with this simple code :
Code:
private void comboBox1_KeyDown(object sender, KeyEventArgs e) { ComboBox c = sender as ComboBox; if (c == null) return; if (c.Text == "") return; if (e.KeyCode == Keys.Delete) { c.Items.RemoveAt(c.FindStringExact(c.Text));