S samperizal Active Member Licensed User Longtime User Nov 7, 2019 #1 Hi. Is it possible in a listview to always show the last item added? Thank you
Jorge M A Well-Known Member Licensed User Longtime User Nov 7, 2019 #2 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) Click to expand... ListView also has a method: ScrollTo Description Scrolls the list to the specified index. Syntax ScrollTo(Index As int) As void Click to expand... You need to know the last index. Upvote 0
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) Click to expand... ListView also has a method: ScrollTo Description Scrolls the list to the specified index. Syntax ScrollTo(Index As int) As void Click to expand... You need to know the last index.