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

  • SEARCH
  • Home
  • 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

I am building an application based on MySQL that allows users to search for
Building an iPhone OS application that will allow users to anonymously post information to
I'm building an application that needs to store sensitive information, which means the data
building a site using PHP and MySQL that needs to store a lot of
Building a website that has English & Japanese speaking users, with the Japanese users
Building my first SL MVVM application (Silverlight4 RC) and have some issues i don't
Building a new ASP.net application, and planning to separate DB, 'service' tier and Web/UI
Building a search with some custom objects and three scopes: All , Active ,
I'm building a flash application and on one frame I have a number of
I am building a web site that uses AJAX to load its different pages

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.