This post describes a small upgrade I made to TextBoxEx control that I introduced in a previous post. I added a new margin to TextBoxEx named 'TextBoxExTrackChangesMargin' (sorry for the name, I could find a better one). This margin highlights to users which line are modified.

This controls simulates the behaviour of VisualStudio: when user edits the text, a small yellow rectangle appears on the changed lines. When Visual Studio save the file, edited lines are committed and their relative small rectangles get a green color. In my demo I put two button on top of TextBox: the first one commits all the changed lines, while the second can be clicked to reset all line to 'unchanged' state.

Click below to download the updated sample code:

TextBoxEx2.rar (133.79 kb)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
5 Comments