bonjour, j'ai modifier mon logiciel , il fonctionne. je voudrais pas afficher dans ma ListView1 : ICON0.PNG, PARAM.PFD, PARAM.SFO, PIC1.PNG quand j'ouvre le dossier. comment l’écrire avec mes codes.merci
mon code de lecture:
voici en image:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 Dim dialog As New FolderBrowserDialog If (dialog.ShowDialog = DialogResult.OK) Then Me.ListView1.Items.Clear() Me.folder = dialog.SelectedPath.Replace("\", "/") Dim files As String() = Directory.GetFiles(dialog.SelectedPath) Dim str2 As String For Each str2 In files Dim item As New ListViewItem(Path.GetFileName(str2)) With { _ .Tag = str2 _ } Me.ListView1.Items.Add(item) Next End If
Partager