I have a RichTextBox that I'm spewing log information to, but the RichTextBox seems to want to horizontally scroll whenever text is appended that is too long to fit.
After searching extensively, and repeatedly failing with ScrollToCaret()
, it would seem that this function controls the vertical scroll position, but not the horizontal. I have also attempted at using the API calls GetScrollRange()
and SetScrollPos()
, and while these do place the scrollbars in the right locations, they aren't controlling the actual location at which the RichTextBox is scrolled.