I'm right about to lose my mind... so hopefully someone can help...
Here is the situation. I wrote a program that has a file watcher on a folder on a clients machine. When a document is dropped into the folder, the program runs and they enter information about the document and it's uploaded to their corporate web site.
I have tested this out locally, it all works fine. We gave the installer to the client, they installed it and it worked fine. We found a couple bugs so we needed to send a patch. They uninstalled the program, and then reinstalled. But when they run the program and drop a document into the folder, the event doesn't run. This is only happening there. I have uninstalled and reinstalled many times on my machine and it works fine.
Here is the code for the file watcher:
Watcher = New FileSystemWatcher(LocalPath)
Watcher.NotifyFilter = (NotifyFilters.CreationTime Or NotifyFilters.FileName Or NotifyFilters.DirectoryName)
AddHandler Watcher.Created, AddressOf Watcher_Created
Watcher.EnableRaisingEvents = True
Mind you that this code works consistantly on my local machine, and did work before the reinstall at the client. (This code was not modified in the patch).
We have checked user permissions, and pretty much anything else I could think of.

FileSystemWatcher
KYNg
there could have been some old files (if you had any) lurking around.
mhouston23
AWJ
In your case, if the user is simply dropping files then all you need is the Changed event.
Also, what OS is your user using the file system watcher does not work on all of microsoft's OS's, let alone other parties'....
Redpay
Public MustInherit Class CHFileSystemWatcher
Inherits FileSystemWatcher
Protected Sub StartMonitoring()
' Define the event handlers.
AddHandler Me.Changed, AddressOf OnChanged
AddHandler Me.Created, AddressOf OnChanged
AddHandler Me.Deleted, AddressOf OnChanged
AddHandler Me.Renamed, AddressOf OnRenamed
'the file watcher is started and runs on a thread pool thread automatically.
Me.EnableRaisingEvents = True
End Sub
Protected MustOverride Overloads Sub OnChanged(ByVal source As Object, ByVal e As FileSystemEventArgs)
Protected MustOverride Overloads Sub OnRenamed(ByVal source As Object, ByVal e As RenamedEventArgs)
End Class
gmoffitt
KYC
Make sure that you are setting the SynchronizingObject property to your form.
ex.
FSWInstance.SynchronizingObject = Me (assuming that you are starting the FSW from Me)