Skip to content

Question about folderbrowserdialog

wes cooper

Asked Jul 26, 2006, 7:10 AM EDT1 answer
Share
LinkedInX
hey guys, when the folderdiolog opens, is there a way to know if the user clicked ok or cancel? thnaks

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    nevermind got it.
    Code
    DialogResult dr = folderBrowserDialog1.ShowDialog();
    if (dr.Equals(DialogResult.OK))
    {
    test = folderBrowserDialog1.SelectedPath.ToString();
    listBox1.Items.Add(test);
    }
    0