---
title: "Textbox scrollbar always stay at the bottom?"  
description: "Textbox scrollbar always stay at the bottom?"  
author: "Jayden Bell"  
published: 2013-12-17  
updated: 2013-12-17  
canonical: https://www.mindstick.com/forum/1794/textbox-scrollbar-always-stay-at-the-bottom  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Textbox scrollbar always stay at the bottom?

Is there a way i can make sure my [textbox](https://www.mindstick.com/forum/12714/dynamic-textbox-in-gridview) scroll bar always stays at the bottom because my textbox is my messages. It looks alot better if it is at the bottom

At the start it changes my [text](https://www.mindstick.com/blog/301635/did-people-reinvent-texting-to-express-the-full-range-of-emotions) to the text from a [database](https://www.mindstick.com/articles/12226/use-of-database-in-sencha-extjs-and-insert-record-from-user-form-using-ajax) so i just did this void

```
private void frmMain_TextChanged(object sender, EventArgs e){    textBox1.SelectionStart = textBox1.Text.Length;    textBox1.ScrollToCaret();}
```

but it didnt work. Is there any other ways? I also tryed [putting them](https://answers.mindstick.com/qa/36760/do-pets-know-when-you-are-putting-them-down) 2 codes in Form1_Load

## Replies

### Reply by Pravesh Singh

Hi Jayden,

Add your code for the Shown event for your Form so you 'would end up with code like this:

```
private void Form1_Shown(object sender, EventArgs e)    {       
textBox1.SelectionStart = textBox1.Text.Length;       
textBox1.ScrollToCaret();    }
```


---

Original Source: https://www.mindstick.com/forum/1794/textbox-scrollbar-always-stay-at-the-bottom

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
