I have a TextBox in a C # Forms Application. I populate the TextBox with information about the form load event. Then I call the following:
this.txtLogEntries.SelectionStart = txtLogEntries.Text.Length; this.txtLogEntries.ScrollToCaret();
However, the TextBox does not scroll to the bottom?
This applies only to the Load event. I also update this TextBox from other parts of the application after it launches, and as soon as one of these events updates the TextBox, it scrolls down.
So, how can I make it scroll the bottom when it pre-populates a TextBox in a Form Load event?
c # winforms textbox
SnAzBaZ Aug 04 '09 at 16:54 2009-08-04 16:54
source share