ciao,
ho una ListView popolata da diverse cartelle, all'interno di queste vi sono dei file, al momento ho associato un imagelist con una icona, in questo modo
però in questo modo anche se viene visualizzato un file, l'icona associata è quella impostata nel controllo imagelist, come posso impostare un' icona diversa da quella del controllo imagelistcodice:Private Sub Form_Load() ListOut.ColumnHeaders.Add , , "Directory Remota", 3500 ListOut.View = lvwReport End Sub Private Sub Inet1_StateChanged(ByVal State As Integer) Dim POSINVIO As Integer Dim RITORNO As String If (ID = "DIR") And (State = icResponseCompleted) Then RITORNO = Inet1.GetChunk(1024, icString) POSINVIO = InStr(1, RITORNO, vbNewLine) While POSINVIO > 0 If Left(RITORNO, POSINVIO - 1) <> "" Then ListOut.ListItems.Add , , Left(RITORNO, POSINVIO - 1), 1, 1 RITORNO = Mid(RITORNO, POSINVIO + 2) POSINVIO = InStr(1, RITORNO, vbNewLine) DoEvents Wend ID = "" End If End Sub

