Click here to Skip to main content
15,891,976 members
Please Sign up or sign in to vote.
1.67/5 (2 votes)
See more:
How can I get a Text Box Vertical Scroll Bar to stay at the bottom of the box?
Posted

1 solution

You need to set your caret at the end of your text.

Try:
C#
//move the caret to the end of the text
myTextBox.SelectionStart = myTextBox.TextLength;

//scroll to the caret
myTextBox.ScrollToCaret();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900