FileSystemWatcher is not working

后端 未结 2 1777
长发绾君心
长发绾君心 2021-01-21 14:15

I added FileSystemWatcher in Form1_Load like this:

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase         


        
2条回答
  •  无人共我
    2021-01-21 15:07

    You should also listen for the Deleted event.

    Depending on the editor you're using, they sometimes Delete/Replace the file instead of simply changing it.

提交回复
热议问题