How Many Rows Can A Listbox Hold? Windows Form Application

后端 未结 3 943
一向
一向 2021-01-28 09:51

I have over 9,00,000 records in my Access database but only a fraction of that is being displayed in the listbox. How Many Rows Can A Listbox Hold? Around 65K is the answer I go

3条回答
  •  轮回少年
    2021-01-28 10:21

    I'm not sure what the exact limit is (The url provided below gives some suggestions) I think the number of items you want to populate the listbox with will probably slow your computer down alot if it's populating it with that many records.

    Maybe you should consider using a different control that allows paging like a DataGrid or something similar to display 100 results at a time?

    This link might be useful to you: http://codeguru.earthweb.com/forum/showthread.php?p=1715288

    Creating datagrid with paging: http://support.microsoft.com/kb/305271

提交回复
热议问题