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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Detecting a background file change

Thread ID:

Created:

Updated:

Platform:

Replies:

62572 Jun 18,2007 08:02 PM UTC Jun 20,2007 02:23 AM UTC WinForms 1
loading
Tags: EditControl
Jon Fiedler
Asked On June 18, 2007 08:02 PM UTC

Hi,

Is there a way to get Essential Edit to "watch" the file it currently is editing and prompt the user to reload the file if some other process modifies it?

I have the Edit control set to allow shared files but I need to inform the user if that file is changed by another process and give them the chance to reload it.

Thank you,
Jon

Sarath Kumar G [Syncfusion]
Replied On June 20, 2007 02:23 AM UTC

Hi Jon,

Thank you for your interest in Syncfusion products.

Yes it is possible to watch the file which is loaded to the editcontrol. This is achived by using "FileSystemWatcher", which watches the changes done to the loaded file. The changes

made to the file is then saved. I have created a sample to explain this. Please do the following to execute the application.

1) Open and execute the sample attached.
2) Make changes to the file loaded in the editor control.
3) Click the "Save" button.
4) "The file is changed", Message will be displayed - click ok.
6) Click Reload button to load the modified file in the other editor of the form.

Here is the sample for your reference.

http://websamples.syncfusion.com/samples/Edit/F-62572/main.htm

Hope so this meets your requirements. Please let me know for further help.

Regards,
Sarath

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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

;