Help on events

G

Guest

How can I fire an event when a file is opened or closed? Can somebody help me?
Thanks a lot.
 
G

Guest

no, FileSystemWatcher can't do that. It can't do anything when a specific file is opening.
 
A

Ayende Rahien

Ross said:
no, FileSystemWatcher can't do that. It can't do anything when a specific file is opening.

Then just check if the spesific file is opemed/closed
 
A

Ayende Rahien

Ross said:
no, FileSystemWatcher can't do that. It can't do anything when a specific file is opening.

NotifyFilter = LastAccess

*Might* gives you what you want,
 
G

Guest

Thank you.
I tried. the LastAccess couldn't help. I have to think about windows APIs.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top