0
How can I always keep the scroll 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, is always in the same place.
0
How can I always keep the scroll 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, is always in the same place.
1
I found this solution here
textBox.VisibleChanged += (sender, e) =>
{
if (textBox.Visible)
{
textBox.SelectionStart = textBox.TextLength;
textBox.ScrollToCaret();
}
};
Browser other questions tagged c# wpf textbox
You are not signed in. Login or sign up in order to post.