下面是使用ComboBox 测试

  1. private void FormTest_Load(object sender, EventArgs e) 
  2.      DataTable dt = new DataTable(); 
  3.      dt.Columns.Add("Name"); 
  4.      dt.Columns.Add("VV"); 
  5.      dt.Rows.Add(new string[] { "你好", "c" }); 
  6.      dt.Rows.Add(new string[] { "大家", "d" }); 
  7.      dt.Rows.Add(new string[] { "你很好", "e" }); 
  8.      dt.Rows.Add(new string[] { "你不好", "f" }); 
  9.  
  10.      this.comboBox1.DataSource = dt; 
  11.      this.comboBox1.DisplayMember = "Name"
  12.      this.comboBox1.ValueMember = "VV"
  13.      this.comboBox1.AutoCompleteSource = AutoCompleteSource.ListItems; 
  14.      this.comboBox1.AutoCompleteMode = AutoCompleteMode.SuggestAppend;