|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
RefreshingHi, on the ListBox I added the FileName + Date/Hour of the file. If the
directory (Dir_Change) changes, the listbox is repopulated. But if the user modifies the file on other program, I'd like to repopulate (refresh) the listbox with the new file Date/Hour... Do you know if it's possible to be done ? Thanks Using VB6 Use a timer to periodically scan the folder to see if the last modified date
has chanced and update the listbox item. You would have to read this attribute at the start and persist it in an associated array. Show quoteHide quote "Paulo" wrote: > Hi, on the ListBox I added the FileName + Date/Hour of the file. If the > directory (Dir_Change) changes, the listbox is repopulated. > But if the user modifies the file on other program, I'd like to repopulate > (refresh) the listbox with the new file Date/Hour... > > Do you know if it's possible to be done ? > > Thanks > Using VB6 > > > A good sample program to read the file times can be found here.
http://www.thescarms.com/vbasic/filetime.aspx Show quoteHide quote "Brian" wrote: > Use a timer to periodically scan the folder to see if the last modified date > has chanced and update the listbox item. You would have to read this > attribute at the start and persist it in an associated array. > > "Paulo" wrote: > > > Hi, on the ListBox I added the FileName + Date/Hour of the file. If the > > directory (Dir_Change) changes, the listbox is repopulated. > > But if the user modifies the file on other program, I'd like to repopulate > > (refresh) the listbox with the new file Date/Hour... > > > > Do you know if it's possible to be done ? > > > > Thanks > > Using VB6 > > > > > > "Paulo" <eris_pa***@terra.com.br> wrote in message Beside what Brian suggested, check this VB6 sample:news:u0LGFu%231JHA.2656@TK2MSFTNGP05.phx.gbl... > Hi, on the ListBox I added the FileName + Date/Hour of the file. If the > directory (Dir_Change) changes, the listbox is repopulated. > But if the user modifies the file on other program, I'd like to repopulate > (refresh) the listbox with the new file Date/Hour... > > Do you know if it's possible to be done ? http://vbnet.mvps.org/code/fileapi/watchedfolder.htm
Contemplating the Migration
Control Focus can the loading of a large number of records go as quick as in DOS Help using SendMessage() function Auto Spacing Labels in 2D Graph FMLabs FMTKit functions BigInteger and BigDecimal [equivalents] for VB.NET? Is using raw, uncooked Winsock so bad? NewEnum in Interface Font Scaling |
|||||||||||||||||||||||