Take the 2-minute tour ×

Well I am trying to autoscroll my ListBox or display everything the opposite way just like a shoutbox.

Please post the code here on how to do it. I have tried many ways but they either gave me errors or didn't work.

share|improve this question
What is shoutbox? –  Jamie Clayton May 23 '10 at 6:34
add comment

3 Answers

up vote 0 down vote accepted

Just usethe ListBox.TopIndex property.

Here's the help for it:


Or otherwise you could just insert the new items on the top rather than the bottom.

As a general tip though, if you're having problems getting the ListBox to do what you need, it might be worth using a ListView in details mode instead.

share|improve this answer
How can I insert new items at the top? –  xZerox May 23 '10 at 17:23
Off the top of my head and assuming the ListBox is called list I think it would be something like list.Items.Insert(0, YourStringOrObject) –  ho1 May 23 '10 at 17:48
add comment

Man try this:

ListBox1.TopIndex = ListBox1.Items.Count - 1

It works. I always use it.

share|improve this answer
add comment

This is what I use on vb.net 2008 pro and it works for me. Just make sure you don't have it set to multi select.

Me.ListBox1.SelectedIndex = Me.ListBox1.SelectedIndex + 1
share|improve this answer
add comment

Your Answer


