private void browseButton_Click(object sender, EventArgs e) { dialogue.multifolder dlg = new dialogue.multifolder(config.FileImageSourcePath); dlg.ShowDialog(); if (dlg.Result() == DialogResult.OK) { config.FileImageSourcePath = dlg.FileImageSourcePath(); pathTextBox.Text = folderBrowserDialog.SelectedPath = config.FileImageSourcePath; } //if (folderBrowserDialog.ShowDialog() == DialogResult.OK) // pathTextBox.Text = folderBrowserDialog.SelectedPath; }