Results 1 to 6 of 6

Thread: How to have a function or process run over and over

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2004
    Location
    Texas
    Posts
    32

    How to have a function or process run over and over

    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.

  2. #2

    Thread Starter
    Member
    Join Date
    Jun 2004
    Location
    Texas
    Posts
    32
    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.

  3. #3
    Hyperactive Member
    Join Date
    Mar 2004
    Location
    Prato - Tuscany - Italy
    Posts
    461
    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
    Live long and prosper (Mr. Spock)

  4. #4
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    If I'm not wrong FileSystemWatcher is event oriented so you don't have to worry about timers
    \m/\m/

  5. #5

    Thread Starter
    Member
    Join Date
    Jun 2004
    Location
    Texas
    Posts
    32
    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.

  6. #6
    Registered User
    Join Date
    Jul 2001
    Posts
    283
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width