Can Someone show me a code that uses EnsureVisible that works? Using ListView 6.0!
Thanls in advance.
Jefferson
Printable View
Can Someone show me a code that uses EnsureVisible that works? Using ListView 6.0!
Thanls in advance.
Jefferson
I use it when adding files to a listview as follows:
Dim lv as listitem
set lv = lvFiles.listitems.add ,,"Whatever"
lv.tag = "Bla bal bla"
lv.listsubitems.add ,, "Bla bla"
lv.ensurevisible
when you use the ensurevisible, the listview will automativally be scrolled (if necessary) to ensure that that item is seen. This gives a smooth scrolling (well, not all that smooth) effect when adding many items.