C# ComBox 垂直滚动条
用到Combox控件两个属性:
1 MaxDorpDownItems 显示条数
2 IntegralHeight 设置 为false
例如:显示最多20条,超过20条显示垂直滚动条
this.comboBox1.IntegralHeight = false;
this.comboBox1.MaxDropDownItems = 20;
- 上一篇 »CSS隐藏滚动条
- 下一篇 »css设置滚动条样式
用到Combox控件两个属性:
1 MaxDorpDownItems 显示条数
2 IntegralHeight 设置 为false
例如:显示最多20条,超过20条显示垂直滚动条
this.comboBox1.IntegralHeight = false;
this.comboBox1.MaxDropDownItems = 20;