VB.NET-Quellcode
- Dim ImageList As New ImageList
- Dim files() As String = Directory.GetFiles(Environment.GetFolderPath(Environment.SpecialFolder.Desktop))
- For i As Integer = ImageList.Images.Count To UBound(files)
- ImageList.Images.Add(Icon.ExtractAssociatedIcon(files(i)))
- Dim SubItem As ListViewItem
- With listView.Items
- SubItem = .Add("", i)
- End With
- Next
Gibt es so ein ähnliches Prinzip auch für die ListView mit Ordnern?
und ja ich hab gegoogled aber nichts richtiges gefunden..
img6.imagebanana.com/img/2h9rxtsp/HolzShots.png
Danke für jede Hilfe..