I would like to set it up so that when I scroll a bit to one direction on
one textbox, the other textbox scrolls in the same direction with the same
amount...
how to do this?
There aren't even any properties/methods on ListView to get at the
scrollbars...
Basically, when you scroll one list view, you can send the LVM_SCROLL
message to the other to make that one scroll as well. You can detect when
one list view scrolls by overriding the WndProc method and looking for the
WM_VSCROLL (vertical scroll) message, I believe.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard.caspershouse.com
"MrNobody" <MrNo...@discussions.microsoft.com> wrote in message
news:16DE67B2-D4EC-4AC3...@microsoft.com...
Ok I know how to extend the control and override the WndProc method but how
do I compare the Msg property to 'WM_VSCROLL' ? When I do:
if (m.Msg == WM_VSCROLL)
I get a compiler error, it does not know what WM_VSCROLL is...
also, onced I capture this how do I send this as a command to the other
ListView's scrollbar?
Thanks!
You can get the value for WM_VSCROLL from the C++ header file WinUser.h
(it should have been installed if you installed Visual C++, or you can
google it).
As for sending the message to the other listview, you can declare the
SendMessage function to be called through the P/Invoke layer (you can get
the definition from http://www.pinvoke.net).
--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard.caspershouse.com
"MrNobody" <MrNo...@discussions.microsoft.com> wrote in message
news:127B44A8-7E27-420E...@microsoft.com...
thanks again for your help!
OK this is starting to get a little bit over my head... (the sending message
part) What do you mean by declaring a SendMessage through a p/invoke layer? I
am totally unfamilar with what the web site is referencing...
"Nicholas Paldino [.NET/C# MVP]" wrote:
> MrNobody,
>