Re: VB6 LISTBOX problem

Tech-Archive recommends: Fix windows errors by optimizing your registry



I have a problem with a listbox.
I believe the problem is the 'limitation' of the 'listbox' control
rather than anything I've done.

I want to add 47,232 entries to the listbox,
I've added the records using 'LIST1.ADDITEM x' without any problems (I
think, data looks ok).

If you look at the ListCount property you'll
see it's an integer. So that's your limitation.
No need to run Ivar's code. All he was trying
to say is that it doesn't work. (I wasted my time
trying it so others won't have to. :)

I've seen code, I think it was in VBPJ a few years
ago, that designs a fast Listbox by loading it
dynamically. You might check around for that. I
think the way it worked was to store the values
in an array and then subclass the Listbox, updating
it's display as it's scrolled, so that it's never actually
holding more than a few items.


.



Relevant Pages

  • Re: VB6 LISTBOX problem
    ... Why not use some sort of Sort? ... I believe the problem is the 'limitation' of the 'listbox' control ... I know adding so many entries to a listbox isn't ideal, ...
    (microsoft.public.vb.general.discussion)
  • Re: VB6 LISTBOX problem
    ... I believe the problem is the 'limitation' of the 'listbox' control ... I know adding so many entries to a listbox isn't ideal, ...
    (microsoft.public.vb.general.discussion)
  • Re: VB6 LISTBOX problem
    ... I believe the problem is the 'limitation' of the 'listbox' control ... Expecting a user to scroll through 47K entries is not a good approach. ...
    (microsoft.public.vb.general.discussion)
  • Re: VB6 LISTBOX problem
    ... I believe the problem is the 'limitation' of the 'listbox' control ... My guess is that the ListCount property properly increments up to 32,767, ... In any case that many entries in a listbox is not ...
    (microsoft.public.vb.general.discussion)
  • Re: What is the maximum amount of items a combo box can hold?
    ... Same limitation for a listbox. ... Ken Snell ... <MS ACCESS MVP> ...
    (microsoft.public.access.forms)