private void button2_Click(object sender, EventArgs e) { Btn phone = (Btn)comboBox1.SelectedItem; if (phone != null) { comboBox1.Items.Remove(phone); comboBox1.Text = ""; } }
void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { Btn phone = (Btn)comboBox1.SelectedItem; }