public void OpenDialog()
{
OpenFileDialog ofd = new OpenFileDialog();
// Set validate names and check file exists to false otherwise windows will
// not let you select "Folder Selection."
ofd.ValidateNames = false;
ofd.CheckFileExists = false;
ofd.CheckPathExists = true;
// Always default to Folder Selection.
ofd.FileName = "Folder Selection.";
if (ofd.ShowDialog() == DialogResult.OK)
{
string localPath = LIO.LStr.SafePath(ofd.FileName);
// To Do…
}
}