comboBox1.Items.Add(langerlist);
//for information's sake, the list is called langerlist
答案 0 :(得分:1)
添加只添加一项您需要使用AddRange
的项目comboBox1.Items.AddRange(langerlist.ToArray());
答案 1 :(得分:0)
您需要使用DisplayMember
设置要显示的属性:
comboBox1.Items.AddRange(langerlist.ToArray());
comboBox1.DisplayMember = "Name";
comboBox1.ValueMember = "ID";
public class MyClass
{
public string Name { set; get; }
public string ID { set; get; }
}