Need VB .Net Code to get list of files and subfolders

Hello,

I need a code in VB .Net which will be invoked when a button is clicked and will get the list of files and subfolders under a parent directory. The path of the parent directory is stacked into another variable called folderpath. The code for folderpath is, folderpath = Browse.SelectedPath. Here Browse is another button which invokes an open dialog box for selecting a folder. The folderpath variable holds the value of parent folder.
I am looking for a code which will give me the list of files and subfolders under this parent directory.
Can anyone please help?

Thanks,
Abhijnan

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories