for (int i = 1; i < 13; i++)
{
this.comboBox1.DisplayMember += i;
}
或者
for (int i = 1; i < 13; i++)
{
this.comboBox1.SelectedText = Convert.ToString(i);
}
都不行,怪了!
{
this.comboBox1.DisplayMember += i;
}
或者
for (int i = 1; i < 13; i++)
{
this.comboBox1.SelectedText = Convert.ToString(i);
}
都不行,怪了!
{
this.comboBox1cl.Items.Add(i.ToString());
}
可以配合使用Items.IndexOf()方法