在combobox的SelectedIndexChange事件中这样写:if (userComboBox1.SelectedIndex == -1) MessageBox.Show("");
var cmb = new System.Windows.Forms.ComboBox();if (cmb.FindStringExact(cmb.Text) < 0){ // 没找到}