What is the limit for the number of items in a ListBox in .NET now?
Or is there no limit at all?
Printable View
What is the limit for the number of items in a ListBox in .NET now?
Or is there no limit at all?
This is real easy to figure out for yourself. Just create a loop that goes to 1000000 and add an item each time. If it doesn't crash, do the loop even more times. If it does crash, go less.
No offence intended, but if you have to worry about the size limit of a listbox then you probably need to rethink your design. Who wants to scroll through even 100 items, not me.
oh brother.
Dude, i'm asking because I don't have VB.Net yet.
I want to know.
Ever have a huge list of something??
Guess not...
Well although I agree, who cares what the limit is, no one would ever want to load that many items into a listbox, out of boredom i figured i'd see for myself. I got to 1,059,808 items before i stopped cuz i got tired of looking at it. Climbed up to 60 megs of RAM before i killed it. Took about 3 minutes to load that far.
ok thanks. That's better then VB6. VB6 after 32,700 & something, the list count starts going crazy and counting backwards on windows XP. I remember on Windows 98 It just crashed after it hit the limit.