Hi. I have a WinForms program where, whenever you change your selection, the RichTextBox needs to change the colour of certain other text. In order to do this, it has to select that text, and therefore I lose my current selection.
I can save and load the SelectionStart and SelectionLength properties, but I can't keep the "selection direction": if the user was highlighting forwards or backwards from the cursor.
Any ideas about how I can either save the selection direction, or colour the text without having to change the selection?