I have two RichTextBoxes on my C# main form. Both RTBoxes are with SrollBars=None. They are used to visualize contents of two different files of different size. How can I use separate VScollbar to navigate through text of those RTBoxes simultaneously?
Browsing forums got a hint to use:
SendMessage(rtBox1.Handle, (uint)WM_VSCROLL, (UIntPtr)SB_LINEDOWN, (IntPtr)(0)).
But I'm completely lost in synchronizing of scrolling for the two RTBoxes.
The idea of scrollbar is to show contents of the files synchronously like when VScrolbar.Value=50
both RTBoxes present text at the middle of the files (sorry for my English). Any piece of real code is highly appreciated!