private void directoryButton_Click(object sender, EventArgs e) { RFID_Explorer.mainForm.CommonDialogSupport dlg = new RFID_Explorer.mainForm.CommonDialogSupport(mainForm.CommonDialogSupport.DialogType.Folder); dlg.ShowDialog(); if (dlg.Result == DialogResult.OK) { savePathTextBox.Text = dlg.FileName; Settings.Default.logPath = dlg.FileName; } }