Click here to Skip to main content
15,897,094 members
Please Sign up or sign in to vote.
3.50/5 (2 votes)
See more:
I'm trying to add some custom content parsing in a TextBox using the PreviewKeyDown method (i'm just adding some text to the beginning of multiple lines and updating the selection position/length). However, whenever I make a change to the TextBox object, that event is being marked as "Significant" (from Java's UndoManager terminology, not sure what the correct term is in C#), or when time an undo is triggered, only that single event is being undone.

How do you mark undoable events as being "in-significant" so that multiple events can be undone each time an undo is triggered?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900