Any TextBox control for WinForms with multi level undo feature?

帅比萌擦擦* 提交于 2019-12-13 04:52:02

问题


I've searched half a day, and found none.

Do you happen to know there's one?

Thanks!


回答1:


Its not built in but you can implement your own Take look to this post in stack over flow C#: How to implement good and efficient undo/redo functionaly for a TextBox




回答2:


you can implement custom undo feature in textbox ....

you can handle the TextChanged event and just push the textbox contents onto a stack each time it changes, then pop and refresh the TextBox every time the user hits Ctrl-Z.....



来源:https://stackoverflow.com/questions/8025926/any-textbox-control-for-winforms-with-multi-level-undo-feature

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!