Emad GabrielThoughts, tips and shortcuts about building software
Code

Scrolling to end of Text Box Automatically

In order to automatically scroll to the end of a text box in a windows forms, simply add the following code.

this.txtResults.Text += "\r\n" + newLineData; // newLineData is string added as new line
this.txtResults.Select(this.txtResults.Text.Length, 0);
this.txtResults.ScrollToCaret();

where txtResults is the textbox in question.

Also you need to make sure that the textbox is a multiline AND it has a vertical scroll bar.

That simple code will make the text automatically scroll to the end of the text box.