The cursor is positioned to the last line in C# textbox

Use the following statement

            this.textBoxLog.Focus();//Get the focus
            this.textBoxLog.Select(this.textBoxLog.TextLength,0);//The cursor is positioned at the end of the text
            this.textBoxLog.ScrollToCaret();//Scroll to the cursor

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325215218&siteId=291194637