Set cursor in RichTextBox

后端 未结 3 953
别跟我提以往
别跟我提以往 2021-01-21 12:15

I\'ve got a simple form with RichTextBox on it. In Load event, I write some text to RichTextBox and now I want to set cursor location to the end of this text so I can add someth

3条回答
  •  长发绾君心
    2021-01-21 12:46

    For winform application simple add this command SendKeys.Send("{RIGHT}"); after richTextBox1.AppendText("foo"); or richTextBox1.Paste(); then `richTextBox1.Focus();'

提交回复
热议问题