日期:2014-05-18 浏览次数:21041 次
comboBox2.Items.Clear(); if (combox1.Text == 'A') { comboBox2.Items.AddRange(new object[] { 1, 2, 3 }); } else if (combox1.Text == 'B') { comboBox2.Items.AddRange(new object[] { 4, 5, 6 }); }