Re: When command1 is clicked last item in listview gets selected
Strange request but something as simple as this should work:
Code:
Private Sub Command1_Click()
ListView1.ListItems(ListView1.ListItems.Count).Selected = True
ListView1.SetFocus
End Sub
If you are usign Report view and would like to select entire row make sure FullRowSelect property is set to True.
Another property to consider is HideSelection - if it's set to False then row selection is visible even when listview loses focus.