I have a TextBox on a C# Forms Application. I populate the TextBox with information on the Load event of the form. I then call the following:
this.txtLogEntries.SelectionStart = txtLogEntries.Text.Length;
this.txtLogEntries.ScrollToCaret();
However the TextBox does not scroll to the bottom ?
This only applies to the Load event though. I also update this TextBox from other parts of the application once it's running, and as soon as one of these events update's the TextBox, it is scrolled to the bottom.
So, how can I get it to scroll to the bottom when pre populating the TextBox in the Form Load event ?
Thanks!