1
You can use FileSystemWatcher class to monitor files and whenever their is any change in the directory/file you can do your stuff there.
This will work without any click event.
0
Hi mohammed, you can use WindowsService Application. Please refer below links
http://www.c-sharpcorner.com/UploadFile/naresh.avari/develop-and-install-a-windows-service-in-C-Sharp/
http://www.c-sharpcorner.com/UploadFile/8a67c0/create-and-install-windows-service-step-by-step-in-C-Sharp/