B4J Question Listview question

Jorge M A

Well-Known Member
Licensed User
Longtime User
From Documentation of ListView:

SetSelection (Position As Int)
Sets the currently selected item. Calling this method will make this item visible.
If the user is interacting with the list with the keyboard or the wheel button the item will also be visibly selected.
Example:ListView1.SetSelection(10)

ListView also has a method:

ScrollTo
Description
Scrolls the list to the specified index.
Syntax
ScrollTo(Index As int) As void

You need to know the last index.
 
Upvote 0
Top