C#:垂直滚动条会自动出现在列表框中吗?

发布于 2024-10-05 12:22:03 字数 64 浏览 10 评论 0原文

如果我用项目填充列表框,当要显示的项目太多时,是否会自动出现垂直滚动条,或者是否需要设置某些内容才能发生这种情况?

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

怪我太投入 2024-10-12 12:22:03

仅当项目数多于显示区域时,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.

雨后咖啡店 2024-10-12 12:22:03

是的,它会的。

YES, that it will.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文