Detecting a Listview scroll in VB.Net

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

How can I detect when a user scrolls a listview (using VB.Net)? There
doesn't seem to be an event triggered by the scroll.

Also, if possible, how can I determine how far the listview was
scrolled and in what direction? (I'd guess that the TopItem property
would be useful for this purpose, but I'd still need something like a
scrolled event.)

Thanks for your help.

- Jeff
 
I've had to work around these issues (lack of TopItem and scroll event) by
superimposing over the listview's scrollbar my own scrollbar and managing
the scrolling myself (.EnsureVisible is the main helper)... Ugly but
works....

Cheers
Daniel
 
Back
Top