-
I have got a listview setup in report mode. If I add more items than will fit on the screen, a slider appears on the right.
How do I get the focus to follow the new data (arriving off the bottom of the visible section) rather than just display the top few items?
Cheers
-
Whenever you add a new item to the listview use the following code to change what item is selected:
With ListView1
Set .SelectedItem = .ListItems(.ListItems.Count)
End With
Good luck!
------------------
Joacim Andersson
[email protected]
[email protected]
www.YellowBlazer.com
-
I tried that, the item gets selected, but the focus remains at the top, any more ideas??
Cheers
[This message has been edited by Rick H (edited 01-25-2000).]
-
ListView1.SelectedItem.EnsureVisible
Joon