I use textbox to write the results.
When textbox is multiline property set to true, and when I insert text into it,
I want it to auto scroll to the last line.
Here is a simple way to auto scrolling textbox.
textbox1.SelectionStart = textbox1.Text.Length;Textbox SelectionStart will force the textbox control to select the last part of the text,
textbox1.ScrollToCaret();
textbox1.Refresh();
and ScrollToCaret() function will auto scroll textbox to the end.