Hi to all wonderful people on VBForume, I have this problem in my project and hoping some one can help me with this. Firs thing first, the project is a backup application which transfers files to the server using Sftp component. I added "FileSystemWatcher" to the project to monitor the files. If the user modifies files then the files are added to the backup list for future backup. I also have BackgroundWorker which downloads files from the server.

Now the problem: the problem is that when the download is running the files are transferred to a newly created folder and this is triggering the "FileSystemWatcher" events and they are kind of confliction each other. I can notice it because the "ProgressBar" control isn’t sowing the progress smoothly but it stops and continue. There are no errors and eventually the files are being transferred successfully.

Now the question: why is this happening? I mean they are two deferent threads. Why the progress bare is being affected? I am setting its value in the "ProgressChanged" event so ther is no chross threading problems. Finally, what should I do to solve this? Thanks for reading and for any advice!