private void textBox1_TextChanged(object sender, EventArgs e)
{
textBox1.SelectionStart = textBox1.Text.Length;
textBox1.ScrollToCaret();
textBox1.Refresh();
}
I prepared this code it's not working
I prepared this code it's not working

SenthilkumarRank #387 · 6.5K reputationPosted May 3, 2012, 9:18 PM EDT
MuthuMari MRank #5,738 · 288 reputationPosted May 3, 2012, 9:23 PM EDT
you have to use like this
textBox1.SelectionStart = textBox1.Text.Length; textBox1.ScrollToCaret(); textBox1.Refresh(); pls refer this url http://stackoverflow.com/questions/898307/how-do-i-automatically-scroll-to-the-bottom-of-a-multiline-text-boxIf this post is useful then mark it as "Accepted Answer"
Esha Rithik7 reputationPosted May 3, 2012, 9:57 PM EDT
But I want to auto scroll up Text in textbox at runtime.
I kept TextBox Readonly property=true.
MuthuMari MRank #5,738 · 288 reputationPosted May 4, 2012, 1:05 AM EDT
pls chk this , i think it might be useful for u.
http://www.aspdotnet-suresh.com/2011/02/how-to-resize-textbox-height.html
thanks.
If this post is useful then mark it as "Accepted Answer"
Nitin Gupta30 reputationPosted Jun 23, 2012, 12:18 AM EDT