CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 1999
    Location
    VA
    Posts
    12

    Need to recreate the directory tree from Windows Explorer...

    In several applications, we need to be able to provide the ability to browse through the network as well as the local machines. In the past, we have relied on the Windows Common Control or implementing the SHBrowseForFolder from Shell32 to have access to Network Neighborhood as well as the local machine.

    However, new requirements require this to be similar to Windows Explorer...where we are selecting the directory and filename seperate and in conjunction with other selections and controls.

    Does anyone know of a control that will reproduce the left pane of Windows Explorer (the directory tree with appropriate icons) or the directory pulldown box used in the Common Control?

    Thank you in advance for any suggestions...
    Last edited by Vince Martinez; August 17th, 2004 at 02:05 PM. Reason: (title was not specific enough)

  2. #2
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726
    have a look at ImageCombo (for address combo) and at Treeview control
    (for left panel ). They are in the "windows common control 6.0" group
    Last edited by Cimperiali; August 17th, 2004 at 06:22 PM.
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

  3. #3
    Join Date
    Aug 1999
    Location
    VA
    Posts
    12
    Quote Originally Posted by Cimperiali
    have a look at ImageCombo (for address combo) and at Treeview control
    (for left panel ). They are in the "windows common control 6.0" group
    Thank you for the tip...my only problem with that is how do I get the directory heirarchy to populate those controls , complete with the folder type to know which icons to use? (for example floppy, CD, or network paths) I've always assumed there was a way to get that data...but I haven't found the one that allows me to pull that information with "My Documents", "My Computer", and "My Network Places" as the 1st tier.

    I was hoping that there was a 3rd party tree view and combo that would already encapsulate this functionality. (It seems like this would be a common problem/request.) But it looks like I'll have to code it myself.

    Thanks again...

  4. #4
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726
    Have a look at filesystem object
    (menu->Project->references->Microsoft Scripting Runtime)
    ...


    More tips:
    http://www.codeguru.com/forum/showth...leSystemObject

    http://www.codeguru.com/forum/showth...leSystemObject
    Last edited by Cimperiali; August 20th, 2004 at 06:58 AM.
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured