Does Windows Forms have a control for browsing drives, directories, files

198 Views Asked by At

Back in a day, Visual Studio 6 had:

  • DriveListBox
  • DirListBox
  • FileListBox

Does Windows Forms have something similar built-in, or is there a way to import it from VS6 (I came across some terms like VB6 compatibility or backward compatibility or something, but I don't know how to implement it)

If it's not possible, can you point me to some more modern solution, a component that would enable user to browse his file system?

1

There are 1 best solutions below

1
Dalibor On BEST ANSWER

I just found out about FolderBrowserDialog and the implementation:

    var d = new FolderBrowserDialog();
    d.ShowDialog();

This will do nicely.