Here is the code for displaying all files in a report style listview with three subitems containing path, size and last date modified. I also want to show related icons of all files along with their filenames. How can I modify the code to achieve this functionality ??

Thanks.

VB Code:
  1. ' General
  2. Dim Fsys As New FileSystemObject
  3.  
  4.  
  5. '  Adds selected files to ListView1
  6. Private Sub AddFilesToFirstListView()
  7.  
  8.     Dim LItem As ListItem
  9. '  Clearing previous items
  10.     ListView1.ListItems.Clear
  11. '  ThisFolder is for accessing selected folder
  12.     Dim ThisFolder As Folder
  13. '  AllFiles is for accessing all files in selected folder
  14.     Dim AllFiles As Files
  15. '  CurrentFile is for accessing current file
  16.     Dim CurrentFile As File
  17.    
  18.     '  Getting selected folder
  19.     Set ThisFolder = Fsys.GetFolder(FolderTree1.SelectedItem.FullPath)
  20.     '  Getting all files in selected folder
  21.     Set AllFiles = ThisFolder.Files
  22.    
  23.     '  Accessing all files in selected folder
  24.     For Each CurrentFile In AllFiles
  25.        '  Adding items in ListView
  26.        Set LItem = ListView1.ListItems.Add(, , CurrentFile.Name)
  27.        LItem.SubItems(1) = FolderTree1.SelectedItem.FullPath
  28.        LItem.SubItems(2) = CurrentFile.Size
  29.        LItem.SubItems(3) = CurrentFile.DateLastModified
  30.     Next
  31. End Sub