如何用大项目列表填充列表框? [英] How populate a listbox with a large items list?

查看:96
本文介绍了如何用大项目列表填充列表框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的关键字列表很大,我想将此列表包括在列表框中.该怎么办?

我尝试将列表粘贴到集合控件中,但是通过这种方式,列表框仅允许少量关键字.您可以帮我吗?

I have a large list of keyword and I want include this list in a listbox .How can I do it?

I tried by paste the list in the collection control but by this way the listbox allow only a small amount of keywords. Can you help me?

推荐答案

最明显的方法是将列表读入集合并将列表框绑定到集合.当然,如果您的列表很大,那么它可能包含的记录多于控件可以处理的数量,或者至少比您放入单个列表的明智数量更多.多大是多大?在我看来,您需要重新考虑UI.当然,您应该尝试编写代码,而不仅仅是在设计器中创建UI.那不是编程.
The obvious way is to read that list into a collection and bind your listbox to it. Of course, if your list is huge, it may contain more records than the control can handle, or at least more than is sensible for you to put in to a single list. How large is large ? It sounds to me like you need to rethink your UI. You should certainly try to write code instead of just creating your UI in the designer. That''s not programming.


这篇关于如何用大项目列表填充列表框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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