CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2003
    Location
    Bradley, IL
    Posts
    116

    Directory Explorer

    Hello Gurus,

    I am working on an app that needs to have a directory explorer dialog. Just the the ones you would use to choose a directory while installing a project.

    I have the option of writing one, but I just figured I'd check here to see if there are any pre-built ones before I build it myself.

    If anyone knows of a component or prebuilt dialog that does this please let me know.

    Thanks in advance,
    Solturus

  2. #2
    Join Date
    Dec 2003
    Location
    Northern Ireland
    Posts
    1,362
    I saw an article on codeguru that describes using commondialog as a directory selector.... maybe a little crude though.

    good luck

  3. #3
    Join Date
    Apr 2004
    Location
    Austria
    Posts
    43

    Re: Directory Explorer

    Originally posted by Solturus
    Hello Gurus,

    I am working on an app that needs to have a directory explorer dialog. Just the the ones you would use to choose a directory while installing a project.

    I have the option of writing one, but I just figured I'd check here to see if there are any pre-built ones before I build it myself.

    If anyone knows of a component or prebuilt dialog that does this please let me know.

    Thanks in advance,
    Solturus
    Use the MSCommondialog Control.
    You must first add the Microsoft Visual Basic Common controls (or somehow like that) to you project and then you can use the commondialog to show the windows printer dialog, colour selection dialog, file opening dialog, file saving dialog etc..

    a directory explorer as you know it from some setup applications where you have only the directory selection without any file selection is not present..

    btw.. it's not very hard to write a directory explorer yourself.
    Just use the Drive and Directory Control and write into the drive_change event this code:

    Dir1.Path = Drive1.Path

    the Dir1.Path variable changes when the user selects a directory and you can access it from the submit button or whatever.

    greetings UNI

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