i have code but how can i refresh the filesystemwatcher ?? when i execute the button?? .thanks :wave:
Printable View
i have code but how can i refresh the filesystemwatcher ?? when i execute the button?? .thanks :wave:
What do you mean by "refresh"? A FSW will just keep on notifying you of the type of changes that you've specified. If you want it to start or stop notifying you of changes then you need to set the EnableRaisingEvents property. If you want to change what events it handles and/or how those events are handled then you need to set properties like Filter, NotifyFilter and Path. The very properties that you presumably would have set in the designer in the first place.