Taking a step back for a moment, I wanted to see whether using a RichTextBox control would improve our app. As you may recall, I started out with a RichTextBox but quickly switched to a TextBox control, which only works with plain text. But this may have been a mistake because the RichTextBox control provides additional functionality that we need.
Case in point: The position of the text caret, which is needed for that “Ln 1, Col 1” display in the Notepad status bar. The RichTextBox control provides properties related to the caret position, while TextBox does not.