© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
2 replies
Luizdodibre

fileSystemWatcher

I'm using fileSystemWatcher to check when a file is edited but every time I edit a file it opens ScanResult window more than 7 times


Code:
  private void fileSystemWatcher1_Changed(object sender, FileSystemEventArgs e)
        {
           
            var scR = new ScanResult();
            scR.Show();
        }
  private void fileSystemWatcher1_Changed(object sender, FileSystemEventArgs e)
        {
           
            var scR = new ScanResult();
            scR.Show();
        }
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

FileSystemWatcher Service
C#CC# / help
12mo ago
✅ FileSystemWatcher - avoiding buffer overflow
C#CC# / help
3y ago
FileSystemWatcher causes user limit exceptions on Kubuntu Linux
C#CC# / help
2y ago
✅ Does `FileSystemWatcher` work on linux? (Trying to monitor for files being added or renamed)
C#CC# / help
4y ago