T
Terry Olsen
The following code works fine in a TextBox for auto-scrolling:
If AutoScroll = True Then
txtChat.Select(txtChat.Text.Length, 0)
txtChat.ScrollToCaret()
End If
If I set AutoScroll to True then when text is appended to the TextBox, it
scrolls down to show it if necessary. When I set AutoScroll to false, it
doesn't scroll, allowing me to read whatever is currently visible.
With a RichTextBox, it seems to scroll down to the last text appended
regardless, even if I comment out the block of code above. What gives?
Can I make the RTB not scroll when text is appended?
If AutoScroll = True Then
txtChat.Select(txtChat.Text.Length, 0)
txtChat.ScrollToCaret()
End If
If I set AutoScroll to True then when text is appended to the TextBox, it
scrolls down to show it if necessary. When I set AutoScroll to false, it
doesn't scroll, allowing me to read whatever is currently visible.
With a RichTextBox, it seems to scroll down to the last text appended
regardless, even if I comment out the block of code above. What gives?
Can I make the RTB not scroll when text is appended?