Hi guys,
How can i make it so when command1 is clicked,the last item in listview1 becomes selected?
Thanks,
Jamie.
Printable View
Hi guys,
How can i make it so when command1 is clicked,the last item in listview1 becomes selected?
Thanks,
Jamie.
Strange request but something as simple as this should work:
If you are usign Report view and would like to select entire row make sure FullRowSelect property is set to True.Code:Private Sub Command1_Click()
ListView1.ListItems(ListView1.ListItems.Count).Selected = True
ListView1.SetFocus
End Sub
Another property to consider is HideSelection - if it's set to False then row selection is visible even when listview loses focus.
OrCode:ListView1.ListItems(ListView1.ListItems.Count).EnsureVisible