Click here to Skip to main content
15,742,011 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm new to this so please bare with me.
I am developing a VB.Net application using a Windows Form and need to browse for Folders on a specific drive.
I'd prefer not to use a FolderBrowserDialog.
I've spent hours searching various forums can't find anything that is is not massive over kill.

What I want to do is:
1. Click a button and see the folders on a specific network drive (e.g. P:\). Each folder represents a "site" (e.g. Sydney, Melbourne, Hong Kong etc.)
2. Click on a "site folder" and see a list folders that represent "Projects" in that city. Each Project is represented by a 6 digit number (e.g. 130235)
3. Click on a "Project folder" and return:
a.) The "Project folder" name, as a variable called "projNumber"
b.) The "Project folder" path (e.g. P:\Sydney\130235),as a variable called "projPath"

Can anyone help please.


What I have tried:

I really don't have code to share at this point.
Updated 6-Jun-19 20:00pm

1 solution

If you don't want the FolderBrowserDialog, then you will have to do it manually.
Start here: Directory Class[^] and and you will need one of the Directory.GetDirectories[^] overloads.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900