I want to set the background color of a certain text range in a RichTextBox.
However, the only way to do that is by selecting it like that:
RichTextBox1.Select(10, 3) 'select text starting from position 10, use a length of 3
RichTextBox1.SelectionBackColor = Color.White
Using .Select puts the cursor at this location.
How do I achieve the same without changing the cursor location?
Solutions have been posted which just reset the cursor, but this does not help. I need a method would not set the cursor to a different location.