ListBox - scroll to last item???

P

Phil Jones

How can I get a [ListBox] to scroll to the its item (if it's list of items
exceeds the availble screen height).

I can't see a method to do this - I'd be looking for something like
"ScrollTo"- but I can't see anything.

Cheers everyone!
===
Phil
 
H

Herfried K. Wagner [MVP]

Phil Jones said:
How can I get a [ListBox] to scroll to the its item (if it's list of items
exceeds the availble screen height).

I can't see a method to do this - I'd be looking for something like
"ScrollTo"- but I can't see anything.

Set the listbox's 'TopIndex' property to the index of the item.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top