Hi N,
You can set the caret position by setting the TextBox.SelectionStart property. To set the caret to the end of the text use
textBox1.SelectionStart = textBox1.TextLength;
textBox1.ScrollToCaret();
i'm setting a (long) string in my textbox
textBox1.Text += s + Environment.NewLine;
but if the text is longuer than the visible capacity of the textbox, I
can't see the end of my text (that is the most important), even if the
scrollbar is set.
I would like to see automatically the end of the textbox
--
Happy coding!
Morten Wennevik [C# MVP]- Masquer le texte des messages précédents -
- Afficher le texte des messages précédents -