private void BrowseButton_Click(object sender, EventArgs e) { if (DialogResult.OK == folderBrowserDialog1.ShowDialog()) { textBoxLocation.Text = folderBrowserDialog1.SelectedPath; validateForm(); } }