Results 1 to 4 of 4

Thread: [RESOLVED] List files with their icons

  1. #1

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Resolved [RESOLVED] List files with their icons

    I was using a FileListBox to display a list of files from a specific directory but I'd like to display them with the corrsponding icon beside the name, just like in windows explorer. Is there a specific control to do that or some trick?
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

  2. #2
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: List files with their icons

    I'm not sure whether this does quite what you are asking for:

    Name:  sshot.png
Views: 164
Size:  31.6 KB
    Attached Files Attached Files

  3. #3
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: List files with their icons

    Er, to be clear that shows how to extract and display associated icons.

    Perhaps what you want instead is an Explorer ListView? Or if you do not want it to be "active" then use a ListView as shown above, but populate it using Dir$() loops.

  4. #4

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Re: List files with their icons

    Yes, I think that's what I want. I just didn't think about using a Listview or a Treeview. This icon extract method deserves some careful look into your code, I'll take my time.

    Thanks.
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

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