列表视图中的垂直滚动条 [英] Vertical scroll bar in listview

查看:110
本文介绍了列表视图中的垂直滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows窗体上,我创建了一个listview项.在运行时,项目超过列表视图的大小.列表视图在新列中显示访问列表项,并在列表视图的底部添加水平滚动条.

我想更改此行为,让它仅在一列中显示所有列表项,并添加一个垂直滚动条(而不是水平滚动条).

如何实现?

谢谢.

On my windows form, I have created a listview item. At run time when the items exceed the size of list view. List view show the access list item in a new column and adds a horizontal scroll bar in the bottom of list view.

I want to change this behavior, let it show all the list items in only one column and add a vertical scroll bar (instead of horizontal scroll bar).

How to accomplish it?

Thanks.

推荐答案

将ListView的View属性更改为Details
您需要在列表视图中至少保留一列才能使用详细信息模式.如果不清楚,谷歌如何使用listview的view属性. :thumbsup:
Change View property of your ListView to Details
You need to have atleast one column in listview to use details mode. If it''s not clear google for how to use listview''s view property. :thumbsup:


这篇关于列表视图中的垂直滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆