File Watch Question?

Hello all!
I'm running a fileWatch on a file.  When the the file has a LastWrite, it 
will prompt a message box. Only looking at that file, and no Sub Directories.

  Private Sub FileSystemWatcher1_Changed(ByVal sender As System.Object, 
ByVal e As System.IO.FileSystemEventArgs) Handles FileSystemWatcher1.Changed
     
      MessageBox.Show("All Bets Are On", "Bets")
   End Sub
I do have a Store Procedure changing the file, but it's just changing one 
value on the file. The Message box always comes up twice, right after one another. Why is this 

Thanks!

Rudy


Answer this question

File Watch Question?

  • SteveHopwood1

    Hello all!
    I'm running a fileWatch on a file.  When the the file has a LastWrite, it 
    will prompt a message box. Only looking at that file, and no Sub Directories.
    
    Private Sub FileSystemWatcher1_Changed(ByVal sender As System.Object, _
    
    ByVal e As System.IO.FileSystemEventArgs) _
    Handles FileSystemWatcher1.Changed
     
      MessageBox.Show("All Bets Are On", "Bets")
     
    End Sub
    
    I do have a Store Procedure changing the file, but it's just changing one 
    value on the file. The Message box always comes up twice, right after one another. Why is this 
    
    Thanks!
    
    Rudy
    -----------------------------------------------------
    Hi,
    You were testing my eyesight with the extra small font size you used so i've re-posted your question (here) for those of us with poorer vision. :-)
     
    Regards,
    S_DS


  • File Watch Question?