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

Total Post:110

Posted on    November-13-2013 7:32 AM

 C# C# 

 1 Reply(s)
 844  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

Posted on    November-13-2013 7:51 AM

Hi Jeet,

You can use the following code snippet:

myTextBox.SelectionStart = myTextBox.Text.Length;


which will automatically scroll to the end.

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

Follow MindStick