开发者

C# ListView : How to Scroll it Vertically in List mode (normally its horizontal scroll bar is shown When View = List)?

When C#(.net 2.0) list view is in List mode(see the code below):

this.listView1.View = System.Windo开发者_如何学JAVAws.Forms.View.List;

the list view scroll bar that is enabled is horizontal scroll bar(when list view items can't fit into the space available).

But I want to enable vertical scroll bar, how?


Use,

this.listView1.View = System.Windows.Forms.View.Details;

instead of

this.listView1.View = System.Windows.Forms.View.List;


You can use this.listView1.View = System.Windows.Form.View.Details; instead of this.listView1.View = System.Windows.Forms.View.List;.
It's very hard to display content in a single line.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜