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
You can set the caret position with the SelectionStart and SelectionLength properties of the rich text box. Set SelectionLength to 0 and then set SelectionStart to the location where you want the caret to appear.
The documentation for SelectionStart says:
If no text is selected in the control, this property indicates the insertion point, or caret, for new text.
The Win32 API function SetCaretPos is much too low level for your needs.