Sync of scrollBars in two RTBs?

  • Thread starter Thread starter Blazej Czeladzki \(ByCZy\)
  • Start date Start date
B

Blazej Czeladzki \(ByCZy\)

Is it possible to syncronize scrollbars in two separate richTextBox-es????
 
Blazej,

What you could do is derive another class from RichTextBox. To this
class, you would add methods that allow you to set the scroll position and
also an event that would be fired when the scrolling is changed. Once you
have that, you can have the form or container manage the two text boxes when
the scrolling occurs. When one scrolls, the scroll position on the other is
set.

Hope this helps.
 
Back
Top