I'm trying to create a listview that will display files from a directory and show them as icons.
Dim s As String
ListView1.Clear()
Dim strFiles As String() = Directory.GetFiles(TreeView1.SelectedNode.Text)
For Each s In strFiles
ListView1.Items.Add(s)
ListView1.View = View.SmallIcon
Next
What else do I need to do to make it actually display an icon? It does display the file name, but it is in text, not an icon.
Dim s As String
ListView1.Clear()
Dim strFiles As String() = Directory.GetFiles(TreeView1.SelectedNode.Text)
For Each s In strFiles
ListView1.Items.Add(s)
ListView1.View = View.SmallIcon
Next
What else do I need to do to make it actually display an icon? It does display the file name, but it is in text, not an icon.