Windows Forms RichTextBox cursor position

前端 未结 3 1393
忘了有多久
忘了有多久 2021-01-17 11:27

I have a C# Windows Forms program that has a RichTextBox control. Whenever the text inside the box is changed (other than typing that change), the cursor goes back to the be

3条回答
  •  鱼传尺愫
    2021-01-17 12:11

    here's a smaller one, that has the same effect. this.richTextBox1.Select(this.richTextBox1.Text.Length, 0); That marks 0 chars at the end of the text and sets the cursor to end

提交回复
热议问题