横向滚动的WinForms ListView控件 [英] Horizontal scroll winforms listview

查看:458
本文介绍了横向滚动的WinForms ListView控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都知道,如果可能,以使水平滚动条只在一个Windows窗体ListView(视图模式设置为大图标)。我想要做的就是让一个ListView其高度足以只显示图标一排,我不希望有多个行。刚一排很长,用户必须水平滚动才能到超出范围的图标。如果我让ListView的滚动那么它会自动进行多行,并提出在一个垂直滚动条,这是我不想要的。

Anyone know if its possible to enable horizontal scrolling ONLY in a windows forms listview (viewmode set to large icons). What I want to do is make a listview whose height is sufficient to only show one row of icons, and I don't want to have multiple rows. Just one very long row that a user would have to scroll horizontally to get to out-of-range icons. If I make the listview scrollable then it automatically makes multiple rows and puts in a vertical scrollbar, which I don't want.

在此先感谢!

推荐答案

将<一个href=\"http://msdn.microsoft.com/en-us/library/system.windows.forms.listview.alignment.aspx\"><$c$c>Alignment属性(或 ListViewAlignment.Left 如果你这样做在code)。

Set the Alignment property to Left (or ListViewAlignment.Left if you do it in code).

这篇关于横向滚动的WinForms ListView控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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