What you want to do is create a class that derives from ListView where
you override the WndProc method. You want to handle the WM_VSCROLL and
WM_HSCROLL messages. When the message fires, you can raise an event to
indicate that the scroll position changed in the listview.
Then, have the listviews subscribe to those events on each other, and
have the scroll position change when it changes in the other list view.
You will have to make sure that you don't get into an infinite loop,
since when you move the scrollbar in response to the first lisview scroll
moving, it will fire the same event.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
<Co**********@al.com> wrote in message
news:11****************@despina.uk.clara.net...
Hi All,
How can I get to scroll bars of a listview, I am trying to sync
two listviews so I need to overload
one of the listview, How can I achieve this ?
Thank You.