Scrollbar

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 ???
 
T

Tyron Madlener

textBox1.Focus();
textBox1.SelectionStart=this.textBox1.Text.Length;
textBox1.ScrollToCaret();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top