I'd like to manually implement a basic undo system for a TextBox (because of the problems mentioned in my last question). I've been trying to do this for hours, but I can't find a way. Does anybody know whether this is possible?
It seems that doing this would require, for example, detecting that the user has changed the caret position, but I can't figure out how to do this. Sure, I can listen for the arrow keys, and detect mouse clicks, but it doesn't seem to be possible — at least in the case of the arrow keys — to actually tell whether SelectionStart has changed.
If anyone has any ideas, I'd grateful.
Tom