I have a win form with a SplitContainer
The SplitContainer's panel1
consists of a RichTextBox
.
Panel2
AutoScroll is set to true.
I want to synchronize the scrolling of RichTextBox
and Panel2
vice versa. How can I do that? any idea?
I've tried this and it is working for two RichTextBox
es but not in my case.
Get the scroll info for both controls:
First you will need the following win32 API's (Imports System.Runtime.InteropServices) into your project
your next move is to monitor which scroll bar changes....via timer etc... then update the other control when needed.