+ Reply to Thread
Results 1 to 7 of 7

Display all files on a specified path on a listbox/listview with icons

  1. #1
    Forum Contributor
    Join Date
    09-05-2012
    Location
    It's more fun in the Philippines :D
    MS-Off Ver
    Excel 2007
    Posts
    209

    Display all files on a specified path on a listbox/listview with icons

    Hi experts,

    Is this possible? To display all the files on a folder/path on a listbox/listview with icons?

    Thanks in advance.
    thisisgerald
    Don't forget to mark your thread as [SOLVED].

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Display all files on a specified path on a listbox/listview with icons

    I don't see why not, you'd just loop through all the files, build an array and use this as the source of the listbox.

    If you want icons as well as names, it gets more difficult and you will need to use a listview, but other than populating the control, the method concept would be the same

  3. #3
    Forum Contributor
    Join Date
    09-05-2012
    Location
    It's more fun in the Philippines :D
    MS-Off Ver
    Excel 2007
    Posts
    209

    Re: Display all files on a specified path on a listbox/listview with icons

    @Kyle

    I have done it but I want a display just look like on the attached file below.
    Attached Images Attached Images

  4. #4
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Display all files on a specified path on a listbox/listview with icons

    That's a pain in the ****, since you'd need to have all the icons loaded into an image list control, get the extension of the file, select the right image and display it in the listview.

    You'd also need to have looped through the files with the fso and got all the file details.

    What are you doing? Why not just use a built in dialogue?

  5. #5
    Forum Contributor
    Join Date
    09-05-2012
    Location
    It's more fun in the Philippines :D
    MS-Off Ver
    Excel 2007
    Posts
    209

    Re: Display all files on a specified path on a listbox/listview with icons

    I know it is pain.

    I want to have a form that the user can view all the files for example in a map network drive.
    I want it to display as is on the attached file. I'll be doing a temporary storage folder where they can view/add/copy those files inside that storage.

  6. #6
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Display all files on a specified path on a listbox/listview with icons

    Can't you use GetOpenFileName?

  7. #7
    Forum Contributor
    Join Date
    09-05-2012
    Location
    It's more fun in the Philippines :D
    MS-Off Ver
    Excel 2007
    Posts
    209

    Re: Display all files on a specified path on a listbox/listview with icons

    Hello Kyle!

    I've worked on the same control I found. Its just it don't accept other type.
    Now it fixed the problem.

    Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1