How to auto scroll to the bottom of a multiline TextBox in C# ?

Posted by Siri under C# on 5/4/2012 | Points: 10 | Views : 2119 | Status : [Member] | Replies : 1
private void textBox1_TextChanged(object sender, EventArgs e)
{
textBox1.SelectionStart = textBox1.Text.Length;
textBox1.ScrollToCaret();
textBox1.Refresh();

}

above code it's not working




Responses

Posted by: Funda on: 5/9/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,
TextBox1.TextMode = TextBoxMode.MultiLine;




Siri, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response