简体   繁体   English

使ListBox项进入下一行

[英]Making a ListBox item go onto the next line

Hello i currently have a list box, which when it reach the end of the list box it carries on writing rather then over flowing on to the next line, how do i get it to overflow onto the next line? 您好,我目前有一个列表框,当它到达列表框的末尾时,它会继续写而不是继续流到下一行,我如何使它溢出到下一行? or is that not possible? 还是不可能?

Edit: Sorry i forgot to mention windows forms. 编辑:对不起,我忘了提到Windows窗体。

I assume that you are working with WinForms. 我假设您正在使用WinForms。 In that case you will have to use a owner- drawn ListBox. 在这种情况下,您将必须使用所有者绘制的ListBox。

See eg An editable multi-line listbox for .NET . 参见例如.NET的可编辑多行列表框 It gives you an idea how you can do it. 它为您提供了一个方法。

Or this: Multiline listbox 或者这样: 多行列表框

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM