Today I needed to make a text box auto scrolling in C#.
After reading all the relevant articles I cound find on the Internet I was still not able to get something that worked in my Windows Form and decided to experiment.
As a result, in 5 minutes later I produced the following code:
//Make the text box autoscroll
private void tbMessages_TextChanged(object sender, EventArgs e)
{
//Get the last text position
tbMessages.SelectionStart = tbMessages.Text.Length;
tbMessages.ScrollToCaret();
tbMessages.Refresh();
}