I’m using a WinForms TextBox control for logging. It’s been set as multiline with scrollbars. I’m inserting text by using:
textBox.Text += logMessage;
The scrollbar does not automatically follow with the latest log entry. Is there a way to do this?
Set the
TextBox‘sSelectionStartproperty to the length of the text, then callScrollToCaret.