How can I keep scrolling at the end of the textbox? I have a textbox, but it receives a lot of content, and when it arrives at the end it does not follow and text that exceeds, stays in the same place.
How can I keep scrolling at the end of the textbox? I have a textbox, but it receives a lot of content, and when it arrives at the end it does not follow and text that exceeds, stays in the same place.
I found this solution here
textBox.VisibleChanged += (sender, e) =>
{
if (textBox.Visible)
{
textBox.SelectionStart = textBox.TextLength;
textBox.ScrollToCaret();
}
};
Sources: link