
-----------------------------------
rar
Tue Jun 29, 2010 12:11 pm

Visual C# Question: Folder Dialog Displays
-----------------------------------
So I'm making a program where I will need to have the user browse for and select a folder. A normal browse dialog box will pop up and the user will select a folder from there. Then, the folder will be displayed in a dialog box on the form. How do I make this happen in Visual C#? Any hints, directions? I've never done anything like this before, it's all a learning experience.

-----------------------------------
TerranceN
Tue Jun 29, 2010 1:09 pm

RE:Visual C# Question: Folder Dialog Displays
-----------------------------------
First create a label, a button and a FolderBrowserDialog. Double click the button to access its button_click code, then add these two lines:

[code]folderBrowserDialog1.ShowDialog();
label1.Text = folderBrowserDialog1.SelectedPath;[/code]

Hope that helps.

-----------------------------------
rar
Tue Jun 29, 2010 2:01 pm

RE:Visual C# Question: Folder Dialog Displays
-----------------------------------
hey that's great! Thanks.
