Scrollbar

  • Thread starter Thread starter Coder
  • Start date Start date
C

Coder

my question is not only specific to C#. In most of the visual environments
we use textboxes, buttons etc..

Exp: In C# i have a textbox (multiline textbox). Suppose that, application
is monitors something, or it is a chat application. So every time new lines
are added to that multiline textbox. The question is how to keep the
scrollbar at the down side. New appended texts must be seen without
touching scrollbar.

is there any property for this issue, or code ???
 
textBox1.Focus();
textBox1.SelectionStart=this.textBox1.Text.Length;
textBox1.ScrollToCaret();
 
Back
Top