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 6787021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:18:55+00:00 2026-05-26T17:18:55+00:00

Nutshell: How can I disable the auto-scroll back to the top of a ListBox

  • 0

Nutshell: How can I disable the auto-scroll back to the top of a ListBox when I call RemoveAt(0)?

Background:
I have a simple list box that I mash full of data at regular intervals.

Basically I’m using it is a status reporting tool.

Every iteration of my program causes 100 or so lines of data to be thrown into the listbox and the best way to dump piles of information in is by always adding it to the bottom.

I want newest results to be at the bottom, and the oldest results to be “pushed up”. Because the size of this listbox becomes rather large after a short period of time I limit the size to 1000 items.

When the box gets more than 1000 items, I use RemoveAt(0) till I get 1000 items again.

To always display the most relevant information I scroll the listbox all the way down. The problem with this is that whenever I call RemoveAt(0), the box is auto-scrolled back up to the new item 0. Basically, every time I add items to a “full” list box, the effect is a quick scroll up 1000 items, then back down 1000 items, making for a clumsy looking display.

How can I disable the auto-scroll back to the top of a ListBox when I call RemoveAt(0)?

  • 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. Editorial Team
    Editorial Team
    2026-05-26T17:18:56+00:00Added an answer on May 26, 2026 at 5:18 pm

    This will only happen when there is no selected item. Or in other words, ListBox.SelectedIndex = -1. The simple workaround is to select an item. Like the last one.

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

Sidebar

Related Questions

In a nutshell, I have a solution that builds fine in the IDE, and
How can I create a function with MATLAB so I can call it any
In a nutshell , I want to have different faces for some types of
In a nutshell, I'm trying to figure out how to programmatically enable and disable
Background : I have to create a plain site that accepts incoming posted XML
In a nutshell, I am looking to see if I can use some kind
I have a form that can be filled, saved, loaded and re-edited. When it
In a nutshell I have two images I want to overlay one over the
In a nutshell, to give you an example, I basically have an app with
First, a simple question. If this can't be done, I'll post a question seeking

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.