943,662 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 1337
  • C# RSS
Nov 15th, 2007
0

Help regarding FileSystemWatcher

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
Exelio is offline Offline
57 posts
since Aug 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: constraints
Next Thread in C# Forum Timeline: Compare XML feeds





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC