July 3, 2008

Scroll to the end of a textbox

I've got a multiline textbox that I'm using to display messages. There is an
easy way to have it scroll to the end after when I add a line to the text of the
box.

TextBox.Select(TextBox.TextLength, 0);
TextBox.ScrollToCaret();

No comments: