Listview view sub folders
Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
3 posts
Page 1 of 1
Hello i know how to open a folder in listview but i want it to show the sub folders in the selected folder, can anyone show me how this is done?
Last edited by AnoPem on Fri Mar 09, 2012 3:03 pm, edited 1 time in total.
Code: Select all
You can modify it to fit your needs Dim d As DirectoryInfo = New DirectoryInfo("Directory path")
For Each f As FileInfo In d.GetFiles("*.*", SearchOption.AllDirectories)
ListView1.Items.Add(f.Name)
Next
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!
MrAksel wrote:Thank you works like a charmCode: Select allYou can modify it to fit your needsDim d As DirectoryInfo = New DirectoryInfo("Directory path") For Each f As FileInfo In d.GetFiles("*.*", SearchOption.AllDirectories) ListView1.Items.Add(f.Name) Next
3 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023