We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How is the Save method different from ResetUndoInfo method in the EditControl ?

Platform: WinForms |
Control: EditControl |
Published Date: April 30, 2011 |
Last Revised Date: July 10, 2014

 

The Save and ResetUndoInfo methods do the same function in most scenarios when a pre-existing file is being used in the EditControl. The ResetUndoInfo method introduces a "save point" like functionality, and all the contents up to that point gets saved and cannot be undone, while the Save method simply saves the contents into the currently open file.

But consider a scenario where some text is being typed into the EditControl without having opened a pre-existing file in it. Try to undo the text typed and it works correctly as expected. Now type something into the EditControl and invoke ResetUndoInfo so that a save point is inserted. Note that no file is being created and nothing is saved in a file at this point. Try to undo this and nothing happens. This is where ResetUndoInfo method differs from Save method.

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon