|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to synchronize V & H scrollbar in TreeViewHi,
I would like to know how to synchronize the vertical & horizontal scrollbars in 2 TreeView to move up & down, left & right synchronously. Noticed that TreeView does not have any scroll event for vertical & horizontal scroll. Any idea how to manage this in VB.Net 2005? I have also tried to debug windows message through the WndProc() routine and when I move the scrollbars in the TreeView it does not generate WM_HSCROLL (276), WM_VSCROLL (277) message number. Regards Sanjib I'm trying to do something similar,
synchronize the scrollbar of treeview and gridview inside a splitcontainer. Have you got it at last? Not yet. But I think the process should be..
Basically, we have to trap the v-scroll & h-scroll event of the both the treeview. And then using treeview handle we have to move the other scrollbar. We just have to ensure that event messages are handle just once for each treeview scrollbar event message, otherwise scrollbar event will run into infinite loop. Haven't got time do this experiment. <siava***@yahoo.es> wrote in message Show quote news:u%23zozyaqGHA.3256@TK2MSFTNGP04.phx.gbl... > I'm trying to do something similar, > synchronize the scrollbar of treeview and gridview inside a > splitcontainer. > Have you got it at last? |
|||||||||||||||||||||||