Guest User

Untitled

a guest
Jul 16th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. Private Sub Desktop(ByVal l As ListView)
  2.  
  3. Dim f() As String = System.IO.Directory.GetFiles(Environment.GetFolderPath(Environment.SpecialFolder.Desktop))
  4. Dim d() As String = System.IO.Directory.GetDirectories(Environment.GetFolderPath(Environment.SpecialFolder.Desktop))
  5.  
  6. For i As Integer = 0 To UBound(f)
  7. With l.Items : Dim s As ListViewItem
  8. s = .Add(f(i))
  9. End With
  10. Next
  11.  
  12. For i As Integer = 0 To UBound(d)
  13. With l.Items : Dim s As ListViewItem
  14. s = .Add(d(i))
  15. End With
  16. Next
  17.  
  18. End Sub
Add Comment
Please, Sign In to add comment