| | |
Help regarding FileSystemWatcher
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Aug 2006
Posts: 57
Reputation:
Solved Threads: 0
hi all,
I need to monitor a folder (also for the subdirectories) for changes or renaming. i am trying to use the File system watcher control and has set the path of the directory.
i have written code in the rename event of filesystem watcher
public void OnRenameEvent(Object sender, RenamedEventArgs e)
{
MessageBox.Show(e.OldName);
}
i have set the EnableRaisingEvents as true. but still when i am trying to rename the folder, the event is not getting triggered.
What am i missing here?
Thanks in advance.
Regards
Exelio
I need to monitor a folder (also for the subdirectories) for changes or renaming. i am trying to use the File system watcher control and has set the path of the directory.
i have written code in the rename event of filesystem watcher
public void OnRenameEvent(Object sender, RenamedEventArgs e)
{
MessageBox.Show(e.OldName);
}
i have set the EnableRaisingEvents as true. but still when i am trying to rename the folder, the event is not getting triggered.
What am i missing here?
Thanks in advance.
Regards
Exelio
![]() |
Similar Threads
- Timer question: Scoreboard (VB.NET)
- B.Sc Thesis Project (VB.NET)
- FileSystemWatcher Novell network (VB.NET)
Other Threads in the C# Forum
- Previous Thread: constraints
- Next Thread: Compare XML feeds
| Thread Tools | Search this Thread |
.net access algorithm array asp.net barchart bitmap box broadcast c# check checkbox client combobox control conversion csharp custom database databaseconnection datagrid datagridview dataset datetime dbconnection degrees design development draganddrop drawing encryption enum event eventhandlers excel file firefox form format forms function gdi+ grantorrevokepermissionthroughc#.net httpwebrequest image index input install java label libraries list listbox loop mandelbrot marshalbyrefobject math mouseclick movingimage mysql mysql.data.client operator path photoshop picturebox pixelinversion post programming radians regex remote remoting resourcefile richtextbox server sleep socket sql statistics stream string study system.servicemodel table tcpclientchannel text textbox thread time timer update usercontrol validation visualstudio webbrowser windows winforms wpf wpfc# xml





