-
Apr 19th, 2010, 06:33 AM
#1
Thread Starter
Lively Member
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
-
Apr 21st, 2010, 02:51 PM
#2
Thread Starter
Lively Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|