I am using winforms, and I update a text box once in a while (showing messages).
however, when the text reaches the end of the box it produces scrollbars and I don't know how to scroll down to the bottom. The only thing I see is ScrollToCaret, but Caret is at the beginning of the text. What is the command to scroll?
C# – How to scroll down in a textbox by code in C#
cscrolltextboxwinforms
Related Topic
- C# – How to make a textbox that only accepts numbers
- Javascript – How to check if element is visible after scrolling
- C# – How to update the GUI from another thread
- C# – How to automatically scroll to the bottom of a multiline text box
- Javascript – Scroll to the top of the page using JavaScript
- Javascript – Scroll to an element with jQuery
- C# – Try-catch speeding up the code
- C# – Maintain TextBox scroll position while adding line
Best Answer
You can do this by making use of a function called ScrollToCaret. You need to first set the caret position to the end of the text box, then you can scroll to it. Here's how to do it: