I posted this in the C# forum, but now believe this a better location. I apologize for the duplicate posting.
I am trying to write some code that will allow me to select a directory. The closest I found is the code below that allows me to select a filename. This code works fine for the filename, but I need just a list of directories and to return the directory name.
Jim Osieczonek
Delta Business Group, LLC
I am trying to write some code that will allow me to select a directory. The closest I found is the code below that allows me to select a filename. This code works fine for the filename, but I need just a list of directories and to return the directory name.
Code:
CODEOpenFileDialog fd = new OpenFileDialog();
fd.InitialDirectory = txtDirectory.Text;
fd.ShowDialog();
txtDirectory.Text = fd.FileName;
Jim Osieczonek
Delta Business Group, LLC