RichTextBox C# Set caret location winforms

后端 未结 4 343
情书的邮戳
情书的邮戳 2021-01-22 15:38

I am building a chat application where the user enters its text to a richtextbox.

In the rich text box there is an initial text which says: \"Me: \".

Now, when

4条回答
  •  醉梦人生
    2021-01-22 16:01

    Winforms: RichTextBox.SelectionStart & set RichTextBox.SelectionLength to 0.

    WPF: RichTextBox.CaretPosition

提交回复
热议问题