AutoScroll Listbox

Sabour

Active member
Joined
Sep 1, 2006
Messages
25
Programming Experience
Beginner
how to AutoScrool a Listbox so it will automatic showing the newest added item???
 
Set the Listbox.TopIndex property.

How is this request related to Remoting? Moved thread to Listcontrols Forum.
 
No. There isn't an event that tells when items collection is altered, so you set the Topindex property after you have added item.
 
ok, example here 'lb' is the Listbox instance.
VB.NET:
'add item code
lb.TopIndex = lb.Items.Count - 1
 
Back
Top