Detecting a file open event in VB .Net

I need to be able to detect when an Excel file is opened within a network folder.  Ideally I need something like the Watcher class which throws up events if any file is changed in a specified folder.  Unfortunately the watcher class generates messages for all evenets other the file open event.  Does anyone have an alternative using Win API calls that can capture this event?
FINDERSOLAsked:
Who is Participating?
 
FINDERSOLAuthor Commented:
Thanks, this does the job.  Jjust realised it was the notifyfilter criteria that I was missing in my code!
0
 
planoczCommented:
I would like to see the code you used.
I could not get the notifyfilter to work right.
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.