Declare watcher as a filesystemwatcher and
add event handler <o:p></o:p>
watcher.Renamed += new
RenamedEventHandler(OnRenamed);<o:p></o:p>
then the event handler can be like<o:p></o:p>
<o:p> </o:p>
private static void OnRenamed(object
source, RenamedEventArgs e)<o:p></o:p>
{
<o:p></o:p>
//code to handle rename event<o:p></o:p>
}<o:p></o:p>
<o:p> </o:p>
Rgds,<o:p></o:p>
<o:p> </o:p>
Subbu<o:p></o:p>
<o:p> </o:p>
From: dotNET User
Group Hyd [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 31, 2004
7:43 PM
To: DNUG (E-mail)
Subject: Event handler error<o:p></o:p>
<o:p> </o:p>
<o:p></o:p>
<o:p> </o:p>
Event handler
error<o:p></o:p>
Reply
<o:p></o:p>
|
<o:p></o:p>
|
Recommend
<o:p></o:p>
|
Message 1 in
Discussion <o:p></o:p>
|
<o:p></o:p>
|
From: Jeethendar <o:p></o:p>
|
<o:p> </o:p>
Can
anyone provide the signature of the handle for Renamed event of the
FileSystemWatcher. <o:p></o:p>
<o:p> </o:p>
Thanks
& Regards,
Jeethendar
Kumar Dhoot <o:p></o:p>
|
<o:p></o:p>
|
View other groups in this
category.