Results 1 to 7 of 7

Thread: adding folders to a tree view.

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2001
    Posts
    746

    adding folders to a tree view.

    i need an example of how to add folders to a listview. for example if i had 3 folders, folder 1 and folder 2 are in the same folder, and folder 3 is in folder 1. the code would add the name for folder1 and folder2 to the treeview and then add folder3 as a child or subitem for folder1.

    thx.
    FlameWave Technologies - internet tools

  2. #2
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    I am about a day or so away from creating the ultimate folder browser tree view class.

    If you can wait till then, I'll share it with ya.

  3. #3
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    I would love to see it. Would it include drag & drop options for multiple elements?
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  4. #4
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    I didn't know you could drag and drop in the tree view . . .

    If you can, then I'll look at it (and probably take another day or so)

    It will however do the following:
    Show icons representing files or folder
    Show drives
    When something is expanded, the contents of that item are loaded THEN, not at the creation of the treeview.
    Numpad * still works though.
    It handles changing media and file deletion (not smartly though -- it re-creates the whole view and unchecks everything)
    Allows the user to check off a folder and the class will return the contents of the folder, file and every sub folder in it.

    It also handles the treeview checkbox bug.

  5. #5
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    Actually, it's not a class, it's a module.

    And while I am at it (I feel all childish now) what are classes used for?

    I can define my own classes in modules, so I fail to see their use.

  6. #6
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Originally posted by Lord_Rat
    I didn't know you could drag and drop in the tree view . . .

    If you can, then I'll look at it (and probably take another day or so)
    I thought you meant the TV and LV (all together). And I was asking about dragging multiple files from one folder to another.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  7. #7
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    Unfortunately, no.

    You see, I fail to see how I could implement that.

    As it is, this is the skeleton for a project of mine where I am going to present the contents of one's computer and let them check off folders to be copied, then choose a destination and the project will copy everything they checked off to the destination.

    This is to help me recover everything I can from partially unreadable CD's.

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