Click here to Skip to main content
15,742,655 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I created a project that has a richtextbox and i want to color some key words
when coloring- when i change the property value of the textrange that is conected to the richtextbox the text is changed and my cursorplace is not right

1 solution

If I understood your question correctly, you can modify the selection after making the changes in color by using TextRange.Select Method [^]
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900