Results 1 to 2 of 2

Thread: VB05 - listview

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2008
    Posts
    91

    VB05 - listview

    Hello, been searching around the forum for my problem but had no luck, I found this amazing "Drag and drop listview" from some thread by a certain user (I can't remember the username).

    Here's what I'm trying to achieve:
    - Icon with a manual add, from a button for example..
    - Filepath & filename in 1 columns, example:
    ___________________
    |Column... |Column2....|
    |Filename..|Filepath....|

    Here's the add code for the drag and drop:
    Code:
                'For each file in the list, create an item, complete with icon.
                For index As Integer = 0 To upperBound
                    filePath = filePaths(index)
    
                    If Not Me.ImageList1.Images.Keys.Contains(filePath) Then
                        'This is the first time this file has been added so add its icon too.
                        Me.ImageList1.Images.Add(filePath, _
                                                 Drawing.Icon.ExtractAssociatedIcon(filePath))
                    End If
    
                    items(index) = New ListViewItem(filePath, filePath)
    I managed to make a "Manual add" button, which worked perfectly BUT it didn't get the icon for it, tho I get it from the drag and drop function..

    Any ideas?

    Thanks, macbrutal

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Feb 2008
    Posts
    91

    Re: VB05 - listview

    No one?

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