Premium

The WinForms Notepad Project: An Experiment (Premium)

Avatar
6

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.

Gain unlimited access to Premium articles.

With technology shaping our everyday lives, how could we not dig deeper?

Thurrott Premium delivers an honest and thorough perspective about the technologies we use and rely on everyday. Discover deeper content as a Premium member.

Become a Premium Member Create a Free Account