ASP.NET Hosting

Browse for folder or computer

In search for a dialog box to browse for a computer or a folder, I found three solutions but none is perfect:

  • The .NET Framework includes the FolderBrowserDialog class, but it cannot be configured to browse for a computer
  • Genghis includes the FolderNameDialog class, but there is a bug that prevents it to be used to browse for a computer
  • This sample on The Code Project by Rama Krishna is also available, and works for computers

Note that they all rely on the system SHBrowseForFolder API function, which seems buggy (at least on Windows 2000) because you can't mix the "browse for computer" option with the other ones (including the new look)! Better know this.

4 Comments

  • Frans: Too bad it can't be used to select a computer :-( Maybe I'll create one for this purpose.

  • Hi Fabrice,



    Did you ever follow up on this i.e. did you write a class that lets you do everything you need in terms of browsing for a computer? I'd be interested to hear what solution you used, as I currently have the same needs.



    Cheers,



    Mal.

  • Hi Mal,



    Well no, I have to leave this aside for the moment. I don't need it immediately anymore. But I guess I will again sooner or later, so if you come across a good solution, please let us know :-)



    Fabrice

  • Can i able to use FolderBrowserDialog class in asp.net??

    If possible Please let me intimate rajan_moorthy@yahoo.com

    Thanks Advance,
    Karbagamoorthy

Comments have been disabled for this content.