Advertisement
6_2008-2009 Files/ File Controls/ Input/ Output #195299

Scroll TextBox to the end

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

AI

Shrnutí AI: 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.

Zdrojový kód
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
Původní komentáře (3)
Obnoveno z Wayback Machine