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

后端 未结 9 1260
无人共我
无人共我 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

    CTRL + Z works on individual controls.

    If you work with data and a BindingSource, you can "undo" the not persisted changes to the record(s) by calling the CancelEdit function or alternatively you can reload the data for the database.

提交回复
热议问题