🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.lang.basic
Article #461

VB: Recognizing File System Changes

#461
From: Gary Fowler
Date: Thu, 28 Jan 1993 22:11
21 lines
1571 bytes
How can I make a File List Box recognize changes to the file system?
I know that I can use the Refresh method to force the File List Box
to update but how do I know when to refresh it?  If my application
changes the contents of the directory then I can simply do a refresh
at that time, but what if another application changes the contents
of the directory?  Is there an API call that will cause the application
to be notified?  There must be some way to do it because the File Manager
gets notified.  I guess I could set a timer event to refresh periodically
but I'd rather not waste cpu cycles.  Any suggestions would be greatly
appreciated.

Thanx,
Gary Fowler

********************************************************************************
*     Gary Fowler                     *     The storm starts when the drops    *
*     gfowler@esunix.sim.es.com       *     start dropping.  When the drops    *
*     Evans & Sutherland              *     stop dropping then the storm       *
*     600 Komas Drive                 *     starts stopping.                   *
*     Salt Lake City, UT              *     -Dr. Seuss                         *
********************************************************************************
Technical Details
Message-ID: <C1L4Av.930@javelin.sim.es.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!orca!javelin.sim.es.com!gfowler

Show Full Headers
Complete Article Headers
Newsgroups: alt.lang.basic
Path: arc1-ca.pugleaf.net!sparky!uunet!orca!javelin.sim.es.com!gfowler
From: gfowler@javelin.sim.es.com (Gary Fowler)
Subject: VB: Recognizing File System Changes
Message-ID: <C1L4Av.930@javelin.sim.es.com>
Organization: Evans & Sutherland Computer Corp.
Date: Thu, 28 Jan 1993 22:11:19 GMT
Lines: 21