How to scroll to bottom of ListBox?
Solution 1:
I believe you can do that easily by setting the TopIndex
property appropriately.
For example:
int visibleItems = listBox.ClientSize.Height / listBox.ItemHeight;
listBox.TopIndex = Math.Max(listBox.Items.Count - visibleItems + 1, 0);
Solution 2:
Scroll to the bottom:
listbox.TopIndex = listbox.Items.Count - 1;
Scroll to the bottom, and select the last item:
listbox.SelectedIndex = listbox.Items.Count - 1;