用到Combox控件两个属性:

1 MaxDorpDownItems 显示条数

2 IntegralHeight 设置 为false

 

 

例如:显示最多20条,超过20条显示垂直滚动条

this.comboBox1.IntegralHeight = false;

this.comboBox1.MaxDropDownItems = 20;

相关文章: