Advertisement
3_2004-2005 Files/ File Controls/ Input/ Output #148786

Scroll TextBox to the end

Scroll TextBox control to the end. This is usefull for chat programs, like mine on the picture.

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Hello,
I have been trying to find this example all over the net, and finally got to the idea how to do this.
All that you need is TextBox control, with properties multiline and vertical or both scrollbars.
After the textbox is filled with text, these three lines will do the job:
TextBox1.SelectionStart = TextBox1.Text.Length
TextBox1.SelectionLength = 0
TextBox1.ScrollToCaret()
Nenad Kermeci
Original Comments (3)
Recovered from Wayback Machine