| | |
Monitoring a directory for changes - VS C# EE 2008
Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Oct 2006
Posts: 164
Reputation:
Solved Threads: 3
Hey everyone,
I'm attempting to monitor a directory, including subdirectories, for changes and update a database. The database part I can do, I just cant figure out how to monitor the directory for changes.. any suggestions? Is there an easy way to do it like function.getChanges(directory)?? Microsoft seems to make things way to easy like that sometimes and maybe I'm just missing it.
Thanks,
barefoot
I'm attempting to monitor a directory, including subdirectories, for changes and update a database. The database part I can do, I just cant figure out how to monitor the directory for changes.. any suggestions? Is there an easy way to do it like function.getChanges(directory)?? Microsoft seems to make things way to easy like that sometimes and maybe I'm just missing it.
Thanks,
barefoot
You are quite right. There is a control called FileSystemWatcher that you can use. Unfortunately, this computer only has Visual C++ installed, so I can't really give you an example in C# (having never used the control before).
I'm not sure about the control's availability for WPF applications, but it i definitely there for Windows Forms.
I'm not sure about the control's availability for WPF applications, but it i definitely there for Windows Forms.
![]() |
Other Threads in the C# Forum
- Previous Thread: What event will capture DataGridView exception?
- Next Thread: Graphical Barcode Control
| Thread Tools | Search this Thread |
.net access ado.net algorithm array barchart bitmap box broadcast buttons c# calculator chat check checkbox client color combobox control conversion csharp custom cyclethruopenforms database datagrid datagridview dataset date/time datetime degrees development draganddrop drawing encryption enum event excel file files form format forms function gdi+ httpwebrequest image index input install java label list listbox listener mandelbrot math mouseclick mysql networking operator path photoshop picturebox pixelinversion post prime programming radians regex remote remoting richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml






