Results 1 to 2 of 2

Thread: Tree view/filelist/dirlist...

  1. #1

    Thread Starter
    Lively Member Xero's Avatar
    Join Date
    Feb 2000
    Posts
    75

    Post

    Is there anyway I can get the contents of a Directory List Box to show up in a tree view, only displaying from a directory I select instead of C:\ AND displaying files of a specified type along with the directories? I want to make it for a Internet Favorites type of thing, NOT IN A TYPICAL MENU, but for an example of what I want, just goto the Favorites menu in Internet Explorer and I want all the favorites like that, except in a Tree View box. Is this possible, if so, how?

  2. #2
    Addicted Member
    Join Date
    May 1999
    Location
    Californ-I- A
    Posts
    207

    Post

    I'm in the works of a project that demonstrates how one could create and entire Windows Explorer clone out of an Image Combo, Treeview, and listview, but it is a tad bit complicated, a still aways from completion.

    The basic idea, is to use the registry to determine what icons to use for folders, drives, recycle bin etc (although in your case it seems you'd only need the folders) and then loop throgh each folder using Dir() function to display each subfolder. To display an icon for a file, I either use ExtractAssosiatedIconEX() or SHGetFileInfo() API's which are discussed at www.vbapi.com.

    Wish I could be of more help.
    Micah Carrick
    Visual Basic 6 SP5
    Visual Basic.NET
    Quixotix Software
    [email protected]
    Download QCM 1.0 - Intelligent ActiveX Control Management

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