Sorry for all the newby questions.
I would like to use Systems.IO FileSystemWatcher class to monitor a forder for changes. How do I make it continue to check the folder for changes as long as the application is running.
Printable View
Sorry for all the newby questions.
I would like to use Systems.IO FileSystemWatcher class to monitor a forder for changes. How do I make it continue to check the folder for changes as long as the application is running.
Also when I minimize my app, I’m sending it to the system tray and displaying an icon. Is there a way for me to trigger the tooltip to show when an event is triggered from the filesystemwatcher.
I never used Systems.IO FileSystemWatcher , but in general, when you have to realize a polling procedure, like watching for I/O or other kind of events that not give you an interrupt to make your app. awake, you need to use a timing interrupt to run your monitor routine. In VB.NET you can use a Timer. It works also if your form is minimized and also if another form is modally opened.
Good job:)
If I'm not wrong FileSystemWatcher is event oriented so you don't have to worry about timers
Does anyone know how to create some sort of popup notification from the taskbar on the events?
I'm trying to do something similar to what windows xp does.
look here for how to get a popup balloon. the post you want is the one by dynamic_sysop posted at 02-03-2004 12:47 AM