Evening Everyone, I have a custom richtextbox where I do formatting and such to words as users type in the box. All works great...except when they hit ctrl+z or use the undo functionality. Instead of undoing their word they just typed, it goes back and starts to undo all of the formatting that was programmatically added.
So, is there a way to stop the "Undo capturing" (not sure what to call it...?) during the progrommatic changes then turn it back on after?
Here is an example that I can't find how to do:
User types word
----------------
pause adding to undo buffer
programmatic changes to formatting
start adding to undo buffer
----------------
user hits ctrl+z and word they just typed is undone
Thanks