How to implement 'undo' operation in .net windows application?

后端 未结 9 1255
无人共我
无人共我 2020-12-04 22:35

Assume that, a win form has certain input fields and user enters/re-enters some data.

How to retain data previously entered by \'undo\' operation?

Just I wan

9条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-04 23:14

    This might not be the best way to go about it depending on what you're trying to accomplish, but you could use a richtextbox and call upon the undo method built into that control.

    For example:

    richTextBox1.Undo();
    

提交回复
热议问题