C#:垂直滚动条会自动出现在列表框中吗?
如果我用项目填充列表框,当要显示的项目太多时,是否会自动出现垂直滚动条,或者是否需要设置某些内容才能发生这种情况?
If I fill a ListBox with items, will a vertical scrollbar automatically appear when there are too many items to display, or is there something that needs to be set for this to occur?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
仅当项目数多于显示区域时,ListBox 才会显示垂直滚动条。
您可以使用
ListBox.ScrollAlwaysVisible
属性(如果您希望栏始终可见)。ListBox only shows a vertical scroll bar when there are more items then the displaying area.
You can play with
ListBox.ScrollAlwaysVisible
Property if you want the bar to be visible all the time.是的,它会的。
YES, that it will.