FolderBrowserDialog ACfileDialog = new FolderBrowserDialog(); if (ACfileDialog.ShowDialog() == DialogResult.OK) { MessageBox.Show(ACfileDialog.SelectedPath); }