home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / mswindo / programm / misc / 5465 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.5 KB  |  32 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!orca!javelin.sim.es.com!gfowler
  3. From: gfowler@javelin.sim.es.com (Gary Fowler)
  4. Subject: VB: Recognizing File System Changes
  5. Message-ID: <C1L47D.91n@javelin.sim.es.com>
  6. Organization: Evans & Sutherland Computer Corp.
  7. Date: Thu, 28 Jan 1993 22:09:12 GMT
  8. Lines: 22
  9.  
  10.  
  11. How can I make a File List Box recognize changes to the file system?
  12. I know that I can use the Refresh method to force the File List Box
  13. to update but how do I know when to refresh it?  If my application
  14. changes the contents of the directory then I can simply do a refresh
  15. at that time, but what if another application changes the contents
  16. of the directory?  Is there an API call that will cause the application
  17. to be notified?  There must be some way to do it because the File Manager
  18. gets notified.  I guess I could set a timer event to refresh periodically
  19. but I'd rather not waste cpu cycles.  Any suggestions would be greatly
  20. appreciated.
  21.  
  22. Thanx,
  23. Gary Fowler
  24.  
  25. ********************************************************************************
  26. *     Gary Fowler                     *     The storm starts when the drops    *
  27. *     gfowler@esunix.sim.es.com       *     start dropping.  When the drops    *
  28. *     Evans & Sutherland              *     stop dropping then the storm       *
  29. *     600 Komas Drive                 *     starts stopping.                   *
  30. *     Salt Lake City, UT              *     -Dr. Seuss                         *
  31. ********************************************************************************
  32.