Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 131151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:03:37+00:00 2026-05-11T06:03:37+00:00

I am building an indexer application based on a suffix tree, that enables me

  • 0

I am building an indexer application based on a suffix tree, that enables me to index whole documents and search strings, substrings, etc, extremely fast.

What I’m doing is entering a string in a textbox, pressing a button, and running a function that queries the suffixtree and adds the positions of all occurences of the string to a listbox. So the listbox has a lot of integers inside it.

Normally, this works fine. For instance, searching for ‘wizard’ or ‘Gandalf’, or ‘hobbit’ (I am indexing FOTR as a test :D) works fine and dandy. However, I’m trying it out now with the letter e.

The problem is that the positions of the letter e do get listed inside the listbox. All 88974 of them. However, when I’m scrolling down by dragging the scroller button, the listbox appears to circularly go back to the top when I’m at around item 60000 or so. The problem is made wierder by the fact that I’ve tried scrolling with page down and everything works ok.

I know that scrolling through 88974 (based on listbox.Items.Count) items is a bit extreme, but logically, there is no reason why there should be such a problem.

Thanks for reading this far!

EDIT : To all those who answered, thanks for answering. I’ve finally implemented this with a listview, and it’s much faster, and can hold many items quite well. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T06:03:37+00:00Added an answer on May 11, 2026 at 6:03 am

    Probably ListBox still uses the 16 bit range/position messages for scrollbars. You could try to reproduce it in Win32 if it’s a problem of the underlying control.

    You may want to try a list view control instead of the list box. I’d expect it to not run into this limitation, and its virtual mode should be more efficient, too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Building a client-side swing application what should be notified on a bus (application-wide message
Im building a web application which is a process management app. Several different employee
When building static libraries with VS2005 I keep getting linker warnings that VC80.pdb cant
In building an ASP.NET 3.5 WAP, I'm always frustrated by the feeling that no
I'm currently building a site that gives a lot of sorting options to the
I am having a problem with indexes building in my App Engine application. There
I am building a web application with Zend Framework, and I need to point
I'm building a JSF+Facelets web app, one piece of which is a method that
When building console applications that take parameters, you can use the arguments passed to
When I am building my typing tutor application the errors user made I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.