How to synchronize V & H scrollbar in TreeView

  • Thread starter Thread starter Sanjib Biswas
  • Start date Start date
S

Sanjib Biswas

Hi,

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top