using (VistaFolderBrowserDialog browseDialog = new VistaFolderBrowserDialog()){ if (browseDialog.ShowDialog() == DialogResult.OK) { m_Path.Text = browseDialog.SelectedPath; } }