forum

Home / DeveloperSection / Forums / Textbox scrollbar always stay at the bottom?

Textbox scrollbar always stay at the bottom?

Jayden Bell 2549 17-Dec-2013

Is there a way i can make sure my textbox 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 to the text from a database 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 2 codes in Form1_Load


c# c# 
Updated on 17-Dec-2013

Can you answer this question?


Answer

1 Answers

Liked By