Hello friends !
In visual studio there are many controls which are very useful but many students never used them as their faculty never told them about such controls.
I'm also talking about a similar small but very useful control available in vs n I'll show you how it works...........
Its FileSystemWatcher Control which helps you to watch any folder or Drive, means you can find which file got deleted, created moved or renamed in that particular drive or folder..
Just open visual studio >>New Project >>Windows Application>>
In the All Window Forms Controls Tab >>you can find a control named FileSystemWatcher
Now select the control and press F4 for properties and make the changes as I did (see snap below)
1st property is the name of the control
2nd property is about Control's Enable or Disable stat.........
IncludeSubdirectories - whether or not the control watch the sub-directories or the main directory which was set in Path property
Path - one of the main property - here we'll set the path of the drive or folder which we are watching for........
Now click on EVENTS button to generate events
Just double click on each of the events to generate the event handlers.........
Main App Snap
For more coding details please download the source project
DOWNLOAD VS2008 Project Coding