Friday, September 17, 2010

folderBrowserDialog, C#

Example on how to get a path to work on it later on from folderBrowserDialog in C#

          DialogResult result = folderBrowserDialog1.ShowDialog();
            if (result == DialogResult.OK)
            {
                thePath = folderBrowserDialog1.SelectedPath;
                pathLabel.Text = folderBrowserDialog1.SelectedPath;
            }

No comments: