RichTextBox Target AutoScrolling

1 message Options
Embed this post
Permalink
Bogus_T

RichTextBox Target AutoScrolling

Reply Threaded More More options
Print post
Permalink
Hi,

To keep the RichTextBox scrolling (even if the window is not active) I added the recommended code from this forum:

(in RichtextboxTarget-Class)
 rtbx.Focus();
 rtbx.SelectionStart = rtbx.Text.Length;
 rtbx.ScrollToCaret();    

.. which works fine, but I would like to stop autoscrolling as long as the Scrollbars are in use, so that one can actually read within the Log without the lines scrolling (which seems impossible due to the Append-Method of the RichTextBox, like it is used..)

I was hoping that anybody already has a solution to this problem, as i don't know how to implement that (just starting with c#)
Or will this be changed in newer versions?

Thanks in Advance!