Results 1 to 4 of 4

Thread: [RESOLVED] Listview and Drive Icon

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2006
    Posts
    57

    Resolved [RESOLVED] Listview and Drive Icon

    hi... vb forumers...

    i used this code for show drive:

    Code:
    Dim fso, a, DriveX, B
    Dim lstItm As ListItem
    Dim aneh As New FileSystemObject
    
    Sub ShowDrive()
        Set B = aneh.Drives   
        lstHDD.ListItems.Clear
        For Each DriveX In B
            If DriveX.DriveType = 2 Or DriveX.DriveType = 3 Then  'tell appart hdd
                With lstHDD
                    Set lstItm = .ListItems.Add(, , DriveX.Path & ":\" & DriveX.VolumeName)               
                End With
            End If
        Next
    End Sub
    and my question, how to get the drive icon and add this on on listview??


    this preview of my listview

    thanks b4
    Attached Images Attached Images  

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width