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?