I have a combobox with objects of Foo type, here is the Foo class:
Foo
public class Foo { public string name { get; set; } public s
Use ComboBox.SelectedIndex property.
ComboBox.SelectedIndex
For example: let me have comboBox1 added to the form. In the delete button:
comboBox1
if (comboBox1.SelectedIndex >= 0) comboBox1.Items.RemoveAt(comboBox1.SelectedIndex);