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!

Listbox -show current entry

Status
Not open for further replies.

snorky

Programmer
Jun 5, 2001
58
GB
Hi Everyone,
I have a listbox ( unbound ) and add items to it. As the items fall off the bottom of the box the scroll bar appears but the top of the list is still inview . How do I get the box to scroll down automatically as items are entered by the program ie: always show the current message ????

Thanks in advance
Snorky [wiggle]
 
add this lineafter you have done the additem. It sets the listindex ie the selected item to the last item in the listbox


List1.ListIndex = List1.ListCount - 1
 
Excellent - just what I needed - Thanx - how the hell did I forget that one ?????

"The gap between theory and practice is not as wide in theory as it is in practice "
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top