Skip to content

Folder Browser

Cason Clagg

Asked Mar 4, 2007, 1:37 PM EST2 answers
Share
LinkedInX
I am trying to make an application that has a folder browser on the side, such as the FolderBrowserDialog but I want it to always be visible. I want to just be able to select a folder and then have it pull some stuff up in a seperate panel. Is there something built in that I can use? How would I go about doing something like this if not?

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Hi! you can take a FolderBrowseDialog control.When you call "ShowDialog()" method, the browser is displayed. For this you just need an event. As per your convinience call the method
    0
  • 0
    You can always create a TreeView then fill it up with the directories. Use Directory Info:

    System.IO.DirectoryInfo dirInfo = new System.IO.DirectoryInfo();

    DirectoryInfo[] directories= dirInfo.GetDirectories();

    Then if I'm not mistaken, you'd probably be able to databind the TreeControl to the returned list.

    0