title: Create multiple FileSystemWatcher instances dynamically
body: <p>I have a filesystemwatcher written from examples found here that is working fine, along the lines:</p>
  
  <pre><code>Public monitor As FileSystemWatcher
  monitor = New System.IO.FileSystemWatcher()
  monitor.Path = c:\temp\
  monitor.NotifyFilter = IO.NotifyFilters.DirectoryName
  monitor.NotifyFilter = monitor.NotifyFilter Or IO.NotifyFilters.FileName
  monitor.NotifyFilter = monitor.NotifyFilter Or IO.NotifyFilters.Attributes
  
  'Add handlers
  AddHandler monitor.Changed, AddressOf fileevent
  AddHandler monitor.Created, AddressOf fileevent
  AddHandler monitor.Deleted, AddressOf fileevent
  
  'Start watching
  monitor.EnableRaisingEvents = True
  </code></pre>
  
  <p>What I'm struggling with is expanding on this to monitor multiple folders, but without knowing except at run time how many folders there will be to monitor.</p>
  
  <p>This question seems to cover it in C#
  <a href="https://stackoverflow.com/questions/30807006/multiple-configurable-filesystemwatcher-methods">Multiple Configurable FileSystemWatcher methods</a></p>
  
  <p>But my lack of experience is so far preventing me from managing to translate this to VB.NET</p>