CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Guest

    Selecting a directory from Common dialog control

    I want to use the Common Dialog control (or something similar) to allow the user to select a directory. I've seen it done before in applictions, and was wondering if VB provides any controls or such for that.

    Thanks for your help.



  2. #2
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: Selecting a directory from Common dialog control

    There are no controls that I know of but Randy Birch from VBNET has a sample using APIs that can do this using the API interface into Windows
    go to VBNET.com and scrounge around for a sample that looks something like "FolderExists"

    John G

  3. #3
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: Selecting a directory from Common dialog control

    I looked before I lept. Apparently VBNET.com is undergoing renovations and is not available but you might try
    Http://www/Planet-Source-Code.com/VB

    there is a wealth of info there and I am sure you can find what you want

    John G

  4. #4
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: Selecting a directory from Common dialog control

    Take a look at :

    http://codeguru.earthweb.com/vb/articles/2054.shtml

    - this is a single BAS module you can drop in your code to show the Browse/Folders window and return the selected folder name.

    Chris Eastwood

    CodeGuru - the website for developers
    http://codeguru.developer.com/vb

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