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.
 

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