代码如下
//往cob_class里面添加默认选项,cob_class是combobox空间
ArrayList arrayListclass = new ArrayList();
arrayListclass.Add("请选择");
arrayListclass.Add("光器件一课");
cob_class.DataSource = arrayListclass;
标签:C#,combobox,ArrayList,默认,Add,cob,class,arrayListclass
来源: https://www.cnblogs.com/kelenote/p/15192066.html