Results 1 to 6 of 6

Thread: .Net ListBox Limit

  1. #1

    Thread Starter
    Hyperactive Member MikeBAM's Avatar
    Join Date
    Sep 2000
    Location
    Metro Detroit
    Posts
    284

    .Net ListBox Limit

    What is the limit for the number of items in a ListBox in .NET now?
    Or is there no limit at all?
    ~* )v( ! /< E *~

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    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.

  3. #3
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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.

  4. #4

    Thread Starter
    Hyperactive Member MikeBAM's Avatar
    Join Date
    Sep 2000
    Location
    Metro Detroit
    Posts
    284
    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...
    ~* )v( ! /< E *~

  5. #5
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Fort Collins, CO
    Posts
    366
    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.

  6. #6

    Thread Starter
    Hyperactive Member MikeBAM's Avatar
    Join Date
    Sep 2000
    Location
    Metro Detroit
    Posts
    284
    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.
    ~* )v( ! /< E *~

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width