Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatic scroll down of a listbox 3

Status
Not open for further replies.

erixire

Technical User
Jun 4, 2002
72
CA
Hi,

Is it possible to automatically scroll down the scrollbar as I add new items to a listbox?

Thanks
 
I found a way finally:

'example: the listbox name is lstInfo
lstInfo.TopIndex = lstInfo.Items.Count - 1

Hope this will help someone else.
 
Also:

ListBox1.SelectedIndex = ListBox1.Items.Count - 1



-bclt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top