Re: Max number of items in a listbox?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Martin (martinvalley_at_comcast.net)
Date: 06/14/04


Date: Mon, 14 Jun 2004 07:58:23 -0700

Thanks.

Yes, I agree regarding UI design. In this instance, I'm using a
ListBox as sort of an event log. My program communicates with other
devices and I provided some trouble-shooting screens with the logging
being able to be turned on and off. It just dawned on me that I'm not
limiting the number of entries that can accumulate in this listbox
and, if the user were to let it run for a day or so, I could get to a
point where the program could crash. I need to add some code to remove
entries from the top of the list when the listcount exceeds some
number (probably 5000 entries).

On Mon, 14 Jun 2004 16:31:51 +0200, "Björn Holmgren"
<bjohol@hotmail.com> wrote:

>"Martin" <martinvalley@comcast.net> wrote in message
>news:q7drc05jv0n3fek3dm12f7d4oklm3b1jvm@4ax.com...
>> What's the maximum number of items that can be added to a ListBox?
>
>32767 (at least using VB)
>
>That's more of a theoritical limitation though. Filling a listbox with
>thousands of items must - in all cases - be considered poor UI design.



Relevant Pages

  • Re: Max number of items in a listbox?
    ... >> ListBox as sort of an event log. ... >> limiting the number of entries that can accumulate in this listbox ... >Sub AddLogEntry ...
    (microsoft.public.vb.general.discussion)
  • Re: Max number of items in a listbox?
    ... > ListBox as sort of an event log. ... > limiting the number of entries that can accumulate in this listbox ... Ahhh, an event log. ... Sub AddLogEntry ...
    (microsoft.public.vb.general.discussion)
  • Re: Max number of items in a listbox?
    ... > ListBox as sort of an event log. ... My program communicates with other ...
    (microsoft.public.vb.general.discussion)
  • New Shareware: MyIdeasJournal version 1.1
    ... MyIdeasJournal is a database program that you can use to capture ... Searching for entries by subject is also very easy and fast. ... listbox item. ... you are either in Search mode or in Browse mode. ...
    (comp.software.shareware.announce)
  • Re: Listbox / Database Question
    ... I am writing a dictionary program with a ... > Dictionary file has over 60000 entries. ... > End if he types GAD listbox will show ...
    (microsoft.public.vb.general.discussion)