我在Form上放置了一个comboBox控件,想开放其Items属性让用户可以添加下拉项。但点击按钮后总是显示Object集合编辑器,而不是象VS一样显示字符串集合编辑器。StringCollectionEditor在VS2012以后居然没有了?
直接添加combobox.items.add("数据")
// cbxType
//
this.cbxType.FormattingEnabled = true;
this.cbxType.Items.AddRange(new object[] {
"正常收费",
"满300返100",
"打8折"});
this.cbxType.Location = new System.Drawing.Point(77, 74);
this.cbxType.Name = "cbxType";
this.cbxType.Size = new System.Drawing.Size(100, 20);
this.cbxType.TabIndex = 10;
this.cbxType.Text = "正常收费";
cbxType就是id,默认的话应该是comboBox1