So after seeing the typing test Dani so kindly made the other day and put on the site I decided to kill some time writing a simple application to practice my typing on.
I have a RTB containing the text which I'm highlighting as I go type letters to show the next one. However using the code:
rtbText.SelectionBackColor = Color.Red;
rtbText.SelectionStart = RTBSelectBegin;
rtbText.SelectionLength = RTBSelectLength;
For some reason I have to call this twice to see any response? The letter does not highlight on first call, but an immediate second call of the same highlight method containing these three lines creates the desired result.
Any ideas as to why this behaviour occurs?