---
title: "How do I automatically scroll to the bottom of a multiline text box?"  
description: "How do I automatically scroll to the bottom of a multiline text box?"  
author: "Anonymous User"  
published: 2013-11-13  
updated: 2013-11-13  
canonical: https://www.mindstick.com/forum/1721/how-do-i-automatically-scroll-to-the-bottom-of-a-multiline-text-box  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# How do I automatically scroll to the bottom of a multiline text box?

I have a [multiline](https://www.mindstick.com/interview/103/what-s-the-difference-between-comments-comments-and-comments) [textbox](https://www.mindstick.com/forum/12714/dynamic-textbox-in-gridview) and i want textbox to scroll down automatically whenever i [add](https://www.mindstick.com/forum/12983/add-address-in-textbox-when-page-is-load-and-if-i-search-address-in-textbox-show-in-map-by-javascript) a new line. How to do it?

## Replies

### Reply by Anonymous User

Hi Jeet,

You can use the following code snippet:

myTextBox.SelectionStart = myTextBox.Text.Length;

myTextBox.ScrollToCaret();

which will automatically scroll to the end.


---

Original Source: https://www.mindstick.com/forum/1721/how-do-i-automatically-scroll-to-the-bottom-of-a-multiline-text-box

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
