loading folders/files in listview is slow ???
Hi,
I am writing a Backup Application using VB6. Here I need to show treeview and listivew with Directories and Files like Windows explorer and allow user to select or drag files for backup. I have populated directory tree. that is fine. But in case of listview for showing selected Directory contents with windows icons I am using Filesystemobject and then getting windows icons for the files and directories. In case of large directory it is taking time to load the files and directories. I treid with Findfirstfile and findnextfile apis also. still it is slow. Can anybody suggest me some good way of loading the files and folders in the listview with windows associated icons?
thanking you
regards
praveenp
Re: loading folders/files in listview is slow ???
Quote:
Originally posted by pampatipraveen
with windows associated icons?
Provided your file enumeration code isn't crap, then the performance hit is going to come from extracting the icons.
Take a look at Wokawidget's multithreaded code for finding files.
Anyway, I don't think that Veritas BakcupExec bothers to display icons. It just has a tickbox beside the filename to select if you want to back that up or not.