When I first added the scrollbar, I found that the scrollbar always runs upwards, after research
The solution is as follows:
•this.(); •Get focus •this.(this.,0); •Select the last line of text •this.(); •Scroll to cursor
ps: Let's take a look at the solution to the c# textBox scrollbar that has been at the bottom
this.();//Get focusthis.(this., 0);//Cursor positioned to the end of the textthis.();//Scroll to the cursor
Summarize
The above is the simple solution that the scroll bar of c# textbox always points to the bottom. I hope it will be helpful to everyone. If you have any questions, please leave me a message. The editor will reply to everyone in time!