Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27382

VS 2010 Adding directory names to a listbox

$
0
0
Hello!

I haven't been programming much, but dabble in it once in a while because it's fun.
But I've been stuck with this issue that I thought would be fairly easy to solve, unfortunately it doesn't seem to be that easy at all.

What I want to do is get the names of all directories, (doesn't really matter if subdirectories are included), and add them to a listbox/listview or even just to a string.

ex. I have a form1 which contains a button and a listbox.
What should I write to make the button look in "C:\work\" and add all the directories to the listbox?


Regards,
Eric Jonsson

Viewing all articles
Browse latest Browse all 27382


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>