Auto-scrolling a ListBox seems to be a common question asked and regardless of my googling I was unable to find a solution other than changing the ListBox selection.
After sometime I finally discovered a simple property ListBox.TopIndex which indicates what the topmost visible (shown) item should be. It appears that setting this to the highest numbered item will result in the ListBox scrolling to the bottom.
To create an AutoScroll ListBox simply set the TopIndex property each time an item is added, like:
I've been working with an Inherited User Control that extends the ListBox control and would like to add an AutoScroll option that will perform this each time an item is added, but I am unable to find anyway to fire an event on an item being added. Please leave a comment if you know how to do this.
