ComBox选择

   MessageBox.Show(Convert.ToString(comboBox1.SelectedIndex));//选中第几项
   MessageBox.Show(Convert.ToString(comboBox1.SelectedItem));//选中文本的值
   MessageBox.Show(Convert.ToString(comboBox1.SelectedText));//数据库中
   MessageBox.Show(Convert.ToString(comboBox1.SelectedValue));//数据中
  //SelectedIndex;选中项的序号。没有任何选中的时候是-1,否则是选中的序号(0开始)

  

原文地址:https://www.cnblogs.com/youhaoxinqin/p/3486539.html