Home > DeveloperSection > Forums > How do I automatically scroll to the bottom of a multiline text box?
Jeet Verma
Jeet Verma

Total Post:110

Points:776
Posted on    November-13-2013 7:32 AM

 C# C# 
Ratings:


 1 Reply(s)
 821  View(s)
Rate this:
I have a multiline textbox and i want textbox to scroll down automatically whenever i add a new line. How to do it?


ezra heywood
ezra heywood

Total Post:145

Points:1019
Posted on    November-13-2013 7:51 AM

Hi Jeet,

You can use the following code snippet:

myTextBox.SelectionStart = myTextBox.Text.Length;

myTextBox.ScrollToCaret();

which will automatically scroll to the end.


Don't want to miss updates? Please click the below button!

Follow MindStick