I have a chat form with a few richtextboxes. One of them is for the messages. How can I autoScroll it when text is added to it, only if the scrollbar was at the bottom before the text was added?
I searched about my problem, but I couldn't find a clear answer.
To add the text I am using string concatenation:
rtb.Text += string.Format("\n\n{0}: {1}", newMessage, name);