jgjkhkhgjkhgkjjkhkjhgjghjgjkhkhCCCCCC*******CCCCCC"
End Sub
Private Sub PerformScroll_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles PerformVscroll.Click
'SendMessage(rtb2.Handle, WM_VSCROLL, SB_LINEDOWN, 0)
SendMessage(lb1.Handle, WM_VSCROLL, SB_LINEDOWN, 0)
End Sub
Private Sub handleScroll(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles rtb2.VScroll
Console.WriteLine("Scrolling")
End Sub
Private Sub ScrollUP_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles ScrollUP.Click
'SendMessage(rtb2.Handle, WM_VSCROLL, SB_LINEUP, 0)
SendMessage(lb1.Handle, WM_VSCROLL, SB_LINEUP, 0)
End Sub
End Class
Dino M. Buljubasic said:
Tree View or Checked List View do not have onVScroll event.
"One Handed Man [ OHM ]"
wrote in message Your going to have to use the Windows API to make the other control scroll
down. Trap the onVScroll event of the control which you want to be the
master and have it send a message to the slave control.
You need to use the User32.DLL and send a Message using the constant for
vertical scroll to the handle of the other control.
HTH
I have a treeview and a checked list view controls one beside another.
I
want to make them work so that when I scroll down or up one of
them
the
other does the same.
Any help will be appreciated