ListBox Autoscrolling
Hi there,
I have code that adds list items to a list box.
How can i have it so that it automatically scrolls into view the last thing added as it is added?
Thanks.
EDIT:
Have figured it out for a text box:
Hi there,
I have code that adds list items to a list box.
How can i have it so that it automatically scrolls into view the last thing added as it is added?
Thanks.
EDIT:
Have figured it out for a text box:
VB.NET:
TextBox.SelectionStart = TextBox.Text.Length
TextBox.ScrollToCaret()
Last edited: