I have a RichTextBox that I want to re-format when the contents of the RichTextBox changes. I have a TextChanged event handler.
The re-formatting (changing colors of selected regions) triggers the TextChanged event. It results in a never-ending loop of TextChange event, reformat, TextChange event, reformat, and so on.
How can I distinguish between text changes that result from the app, and text changes that come from the user?
I could check the text length, but not sure that is quite right.