I want to design a program contain browse button, where we can browse to the selected folder and open the file inside the folder.
I need a reference and reading wher
string folderpath = "";
FolderBrowserDialog fbd = new FolderBrowserDialog();
fbd.ShowNewFolderButton = false;
fbd.RootFolder = System.Environment.SpecialFolder.MyComputer;
DialogResult dr = fbd.ShowDialog();
if (dr == DialogResult.OK)
{
folderpath = fbd.SelectedPath;
}
if (folderpath != "")
{
txtBoxPath.Text = folderpath;
}