初始化数据:
List<KeyValuePair<string, string>> list;
ComBox1.ValueMember = "Key";
ComBox1.DisplayMember = "Value";
ComBox1.DataSource = list;
使用:
private void ComBox1_SelectedIndexChanged(object sender, EventArgs e)
{
string Key= ComBox1.SelectedValue.ToString();
//todo
}